You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The binding DLL needs to ensure that the form is created with a single threaded apartment model. The Open File dialog and the Trace File dialogs both rely on using a message pump loop in an STAThread.
Apparently if the thread is in a multi threaded apartment that is where you see the problem of the crashing dialog window.
So, how to fix? I remember you mentioned that you decorated the "main()" entry point into the form with the [STAThread] attribute and that didnt work - it might be worth looking into the binding C++ files to see if you can create the .NET call in an STAThread.
Failing that I can attempt to create another thread within the C# as an STAThread and attempt to run that...
Pressing the "Browse.." button to open the file chooser will make the window unresponsive.
Likely connected to the threading apart. model.
The text was updated successfully, but these errors were encountered: