Answered by:

Application.exe encountered a problem. We are sorry for the inconvenience

Question

I developed a Window Mobile 6.0 application using .net 3.5 compact framework and Sql Server Compact Edition and some Windows APIs. when I close the application, it throws "Application.exe encountered a problem. We are sorry for the inconvenience." this exception
with two buttons in the dialog box "Send" and "Don't Send".

Answers

There are two issues I found which we should handle carefully which are following:

1. When we use ShowDialog() method to open the form we must dispose the form object after ShowDialog() and assign null into form object.

2. We must know which font the Hand Held device can have. if we use the font which does not exist in the device then also we will get the flickering exception window and message will be "Application has encountered a serious problem need to close the application."

There are two issues I found which we should handle carefully which are following:

1. When we use ShowDialog() method to open the form we must dispose the form object after ShowDialog() and assign null into form object.

2. We must know which font the Hand Held device can have. if we use the font which does not exist in the device then also we will get the flickering exception window and message will be "Application has encountered a serious problem need to close the application."

There are two issues I found which we should handle carefully which are following:

1. When we use ShowDialog() method to open the form we must dispose the form object after ShowDialog() and assign null into form object.

2. We must know which font the Hand Held device can have. if we use the font which does not exist in the device then also we will get the flickering exception window and message will be "Application has encountered a serious problem need to close the application."

Thanks

Laxman

I had the same issue with our software on Windows CE 6.0.
Remarkably, on Windows Mobile Classic 6.1 and Windows CE 5.0 this error did not show up.

In our case it was the Net CF 3.5 Listview Class, which caused the problem in direct correspondence with a modified font property. We had assigned "Tahoma, 12, Regular", standard is "Tahoma, 10, Regular".

I could successfully break the error by assigning the standard font "Tahoma, 10pt, Regular" to each Listview in the program in the OnClosed-Event of its containing form.