Hi there,
I have a solution here that consists of about 50 projects, mainly C# WinForms and some C++ managed and unmanaged projects.
After many fixes and corrections i managed to get a x64 compile to run - but only under the debugger. The release build doesn't run standalone - i.e. when starting the exe the process runs for some seconds and then disappears again. The debug build does. As I said, the release build runs when started under the debugger, too.
I found out that during startup the call
System.Windows.Forms.Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
fails with 'InvalidOperationException: Thread exception mode cannot be changed once any Controls are created on the thread.'.
The call is almost first in the call chain of WinMain, there's only an ATL Module Lock call before and some empty constructors (if I didn't overlook something).
There are no (visible) windows created (as far as I know), so what might it be?
Does something create invisible helper windows?
Why does the 64 bit release build react other than all other configurations???
How can I fix that?
Regards,
Thomas