What is permissible during the unhandled exception handler.

I am trying to integrate a Xamarin.Forms app with Microsoft Mobile Center. My approach to crash reports is to keep a log in memory of the last N application activities (user actions etc) then write these to disk during the unhandled exception handler. When the app restarts the log file can be uploaded to Mobile Center with the crash log (stack, device info etc).

I first tried this on Android.

File IO is async so if any other tasks run during the write process I get
art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI CallStaticObjectMethodA called with pending exception android.runtime.JavaProxyThrowable:

So it looks like this approach with the memory based log is not a good one.

Anyone tried this or something similar?


Sign In or Register to comment.