CE 6.0 / .NET CF 3.5 Application has encountered a serious error (MC3100)

后端 未结 8 1260
别那么骄傲
别那么骄傲 2021-02-09 06:45

When exiting my .NET CF 3.5 application on the Motorola MC3100 (CE 6.0 version only) I get the error message \"Application xxx has encountered a serious error and needs to shut

相关标签:
8条回答
  • 2021-02-09 07:44

    I've had this exact issue with the MC3190. The solution I found was to keep track of all forms that were opened in the application by adding each instance to a global List and upon application exit loop through the list and call a Form.Dispose on each item in the list. Has stressed me out for months.

    0 讨论(0)
  • 2021-02-09 07:44

    I encountered the same problem : Motorola MC3100, with wince6, only crashing at application exit when running standalone, and no crash when running with VS debugger attached. when crashed, the OS was HS and the only solution was to coldBoot the device.

    And i manage to deal with it with the following solution.

    My app was using Application.exit() in a modal sub form, and it seems it doesn't deal well with some unmanaged ressources used by font.

    in my case the precise cause was to use new Font(...) in my main form. using it in modal subform didn't cause any issue.

    Bringing back the application.exit() in the main form didn't work either, nor disposing explicitly font ressources (i made a lot of try oriented this way).

    At the end the only solution i find that works was to quit the application by closing the mainform instead of using application.exit(), and it works well.

    0 讨论(0)
提交回复
热议问题