[mono-android] mgmain JNI_OnLoad - 'Mono' has exited with code 255
Jonathan Pryor
jonp at xamarin.com
Mon Jan 16 20:47:54 UTC 2012
On Jan 16, 2012, at 5:34 AM, devbuzz wrote:
> I have an activity and a service which crash and completely lock up the device.
That's...very odd. :-/
Which version of Mono for Android is this? Which Android platform?
> I see the following in the log:
>
> *In mgmain JNI_OnLoad
> The program 'Mono' has exited with code 255 (0xff).
Is there any other output, such as: "ERROR: Unable to attach current thread to the Java VM!"?
I don't recall seeing this error message before... :-/
> Typically what does this mean?
> Is it some as simple as an unhandled exception?
JNI_OnLoad() occurs before managed code runs, unless you're calling Java.Lang.JavaSystem.LoadLibrary() for another library or you have some custom Java code which is using java.lang.System.loadLibrary(). Assuming you're not using any custom Java code and not using JavaSystem...I have no idea what would be causing this. :-(
- Jon
More information about the Monodroid
mailing list