[mono-android] Odd IOnTouchListener Exception
Aaron Knabb
aknabb at mobileepiphany.com
Wed Mar 30 13:08:20 EDT 2011
I'm having trouble reproducing this one consistently. Basically, I have a
pretty complex SurfaceView that I do all manner of multi-threaded crazy
rendering on. This all seems to go pretty well until I make my surface
implement View.IOnTouchListener. Even if I have no code (just return false)
in my OnTouch method, I keep getting the following exception after several
seconds of swiping across the view:
03-30 10:44:18.431: ERROR/mono(21233): Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an
object
03-30 10:44:18.431: ERROR/mono(21233):
at Java.Lang.Object.GetObject (IntPtr handle, System.Type type, Boolean
owned) [0x00000] in <filename unknown>:0
03-30 10:44:18.431: ERROR/mono(21233):
at Java.Lang.Object._GetObject[IOnTouchListener] (IntPtr handle, Boolean
owned) [0x00000] in <filename unknown>:0
03-30 10:44:18.431: ERROR/mono(21233):
at Java.Lang.Object.GetObject[IOnTouchListener] (IntPtr handle, Boolean
owned) [0x00000] in <filename unknown>:0
03-30 10:44:18.431: ERROR/mono(21233):
at
Android.Views.View+IOnTouchListenerAdapter.n_OnTouch_Landroid_view_View_Landroid_view_MotionEvent_
(IntPtr jnienv, IntPtr native__this, IntPtr native_v, IntPtr native_e)
[0x00000] in <filename unknown>:0
03-30 10:44:18.431: ERROR/mono(21233):
at (wrapper dynamic-method) object:34cf8861-b95d-4dcc-b219-d0ce7e16d097
(intptr,intptr,intptr,intptr)
This call stack doesn't seem to include any of my code, so I'm not sure how
to track this one down. Try as I might, I am also unable to reproduce it
with a simpler test app. Is this a mono problem, or am I doing something
wrong?
Thanks,
-Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110330/9cf807a4/attachment.html
More information about the Monodroid
mailing list