I ran into the same problem: Motorola MC3100 with wince6, only crash when the application exits when it starts offline and no crash when working with the VS debugger. when the OS crashed, it was HS, and the only solution was to cool the device.
And I manage to handle this with the following solution.
My application used Application.exit () in a modal subform, and it seems like it does a poor job with some of the unmanaged resources used by the font.
in my case, the exact reason was the use of the new font (...) in my main form. using it in a modal subordinate form did not cause any problems.
Bringing application.exit () back to the main form didn’t work either, nor did I explicitly recycle the font ressources (I made many attempts oriented this way).
In the end, the only solution I found is to close the application by closing the main form instead of using application.exit (), and it works well.
source share