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);
}
source
share