[mono-android] Catch all the exceptions
PVoLan
pvolan at mail.ru
Mon Jan 23 12:50:42 UTC 2012
I want to handle all the exceptions in my application and send them to my
server, collecting statistics info. This looks like a trivial task, but I've
got some problems.
Sending remote request takes long time. If I subscribe at
AppDomain.CurrentDomain.UnhandledException to catch an exception, dalvikVM
kills a process before request is finished. I also tried to subscribe on
Java.Lang.Thread.DefaultUncaughtExceptionHandler, but it is never called.
Here is a test case, I tried to make comments in code clear
https://github.com/PVoLan/TestUnhandled
How can I perform long-time workaround for unhandled exceptions?
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Catch-all-the-exceptions-tp5165993p5165993.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list