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

后端 未结 8 1258
别那么骄傲
别那么骄傲 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 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.

提交回复
热议问题