Hello,

Is anybody successfully using AndroidEnvironment.UnhandledExceptionRaiser?

I get an error like:
08-19 14:47:29.307: ERROR/mono(20475): Unhandled Exception: 
System.InvalidCastException: Cannot cast from source type to destination type.
08-19 14:47:29.307: ERROR/mono(20475): at 
Android.Runtime.AndroidEnvironment.GetUnhandledExceptionRaiserInvocationList () 
<0x0007c>
08-19 14:47:29.307: ERROR/mono(20475): at 
Android.Runtime.AndroidEnvironment.UnhandledException (System.Exception) 
<0x00057>
08-19 14:47:29.307: ERROR/mono(20475): at (wrapper dynamic-method) 
object.79034f33-bee7-4ffd-ad32-139c95eb1223 (intptr,intptr,intptr,bool) 
<0x0008f>
08-19 14:47:29.307: ERROR/mono(20475): at (wrapper native-to-managed) 
object.79034f33-bee7-4ffd-ad32-139c95eb1223 (intptr,intptr,intptr,int) <0x00067>

at the point I'm expecting my handler to get called.

            AndroidEnvironment.UnhandledExceptionRaiser += new 
EventHandler<RaiseThrowableEventArgs>(AndroidEnvironment_UnhandledExceptionRaiser);

        void AndroidEnvironment_UnhandledExceptionRaiser(object sender, 
RaiseThrowableEventArgs e)
        {
            // Hopefully do my stuff...
        }

Am I doing something wrong?

Thanks,

Andy

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to