[mono-android] Getting intermittent calls to AsyncTask(IntPtr, Android.Runtime.JniHandleOwnership)

chris@Terrago cdrake at terragotech.com
Thu Feb 16 05:01:35 UTC 2012


I have created an asynchronous task based on the AsyncTask class using the
methods described by several people on the forum. Everything appears to be
working fine,except that I occasionally get external calls to my class'
constructor with the following prototype: 	
AsyncTask(IntPtr, Android.Runtime.JniHandleOwnership). If I include a
constructor of this form in my class as a pass through, everything appears
fine, but nowhere in any examples or documentation I have seen does anyone
describe the need to do this. I have noticed that this call immediately
precedes the throwing of an exception in code called by my AsyncTask, but
the exception is getting handled. I'm not sure if the two issues are
related. Does anyone know why the system would be trying to create another
copy of my task using this particular constructor? Help of any kind is
always appreciated :)

Thanks

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Getting-intermittent-calls-to-AsyncTask-IntPtr-Android-Runtime-JniHandleOwnership-tp5488517p5488517.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list