[mono-android] Uninformative exceptions

Brian Long brian at blong.com
Wed Mar 30 06:25:29 EDT 2011


Is there any sensible means of getting some additional diagnostic when an
unhelpful stack trace like this shows up?

UNHANDLED EXCEPTION: Java.Lang.RuntimeException: Exception of type
'Java.Lang.RuntimeException' was thrown.
at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod
(intptr,intptr,intptr,Android.Runtime.JValue[]) <0x00088>
at Android.App.Activity.SetContentView (int) <0x001df>
at TimeSheet.LoginActivity.OnCreate (Android.OS.Bundle) <0x0007b>
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_
(intptr,intptr,intptr) <0x00057>
at (wrapper dynamic-method) object.c29d2b9a-a8ca-4b92-bf78-a3bfb8ea7dc1
(intptr,intptr,intptr) <0x00033>

Having looked at the exception, it seems to be pretty unhelpful, and DDMS
and the VS Android log aren't giving anything else

My current approach, given this occurs during layout load, is to
painstakingly cut down the layout, bit by bit, until i can hone in on the
offending item.

Is there a better way?

Thanks

- Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110330/e665b2b6/attachment.html 


More information about the Monodroid mailing list