Skip to content

The WinformsControlTest app under the Winforms repo will stop running when opening TreeView/ListView form #9322

Description

@MelonWang1

.NET version

.NET 8.0.100-preview.6.23320.4

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, it cannot repro in .NET 8.0.100-preview.5.23261.16.

Issue description

In E2E testing, the WinformsControlTest app under the Winforms repo will stop running when opening TreeView/ListView form. After investigation, we found an exception: BinaryFormatter serialization and deserialization are disabled within this application was catched.
Stop running:

debug.mp4

Exception:
image

Call stack:

System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(Windows.Win32.Foundation.HWND hWnd, Interop.User32.WM msg, Windows.Win32.Foundation.WPARAM wparam, Windows.Win32.Foundation.LPARAM lparam) Line 381 C#
[External Code]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.Interop.Mso.IMsoComponentManager.FPushMessageLoop(nuint dwComponentID, Interop.Mso.msoloop uReason, void* pvLoopData) Line 293 C#
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Interop.Mso.msoloop reason, System.Windows.Forms.ApplicationContext context) Line 1090 C#
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Interop.Mso.msoloop reason, System.Windows.Forms.ApplicationContext context) Line 956 C#
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) Line 1160 C#
WinformsControlsTest.dll!Program.

$(string[] args) Line 23 C#

Steps to reproduce

  1. Git clone https://github.com/dotnet/winforms
  2. Open CMD from clone folder and run "start-vs.cmd" command open project
  3. Select WinformsControlTest app, right click it to set as startup project
  4. Build and run, click "TreeView,ImageList"/"ListView" button

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions