I am migrating the .NET CF 1.0 WinForms application (for older versions of Windows CE) to .NET CF 3.5 (for Windows CE 6). The problem is that a few seconds after calling Application.Exit (), I get a "fatal error" error message that just says something about the effect "A fatal error has occurred and the application will terminate.". Since I'm using the Chinese version of Windows CE, the message is in Chinese, and I'm not sure the exact message is in English. In any case, the error message automatically disappears, and the application cannot completely shut down and free up resources, so the entire operating system becomes unusable (launching any application will lead to perpetual hourglass animation, docking the device in its stand also does not cause ActiveSync to connect) until I can boot the device.
This fatal error apparently never occurred in its original form (.NET CF 1.0) on an older device.
And since this is not a .NET exception, it does not fall into the .NET runtime.
What can I do?
source share