Exception Handling for Windows Mobile Devices

Is there a way in Windows Mobile to detect global unhandled exceptions? If not, are there any workarounds? In particular, we have a thin client application, and we want to globally catch exceptions that are thrown when the network is unavailable (so we can present a friendly message and ask the user to try again).

This catch statement does not fire when I throw an exception when a button is clicked

 try
 {
   Application.Run(new Login());
 }
 catch (Exception ex)
 {
   Debug.WriteLine("Caught " + ex);
 }
+3
source share
2 answers
+2

void Main() try/catch, .

0

Source: https://habr.com/ru/post/1788035/


All Articles