So I went ahead and created the following class public class UncaughtExceptionHandler: Java.Lang.Object, Java.Lang.Thread.IUncaughtExceptionHandler { public void UncaughtException(Java.Lang.Thread thread, Java.Lang.Throwable ex) { Log.Info(MainActivity.AppId, "Uncaught exception handler"); } }
Then before creating/starting the task: Java.Lang.Thread.DefaultUncaughtExceptionHandler = new UncaughtExceptionHandler(); And, no joy again :( The Uncaught exception doesn't get thrown.. the Task still dies a stealthy death. Sayed Arian Kooshesh wrote > > you shoudl override java's Thread.settheadexception handler, not > unobersrved error. I don't think .net's typical error handling works here > because it doesn't catch errors that are from java. > > http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.UncaughtExceptionHandler.html > > > derive a class and override uncaughtexception > > http://developer.android.com/reference/java/lang/Thread.UncaughtExceptionHandler.html > > On Sat, Aug 18, 2012 at 7:45 PM, Konaju Games (Dev) <dev@> wrote: > >> Your log output does not show the log message from the beginning of the >> constructor, so that would suggest it is happening before the constructor >> is called. >> On 19 Aug 2012 05:07, "Stephan Steiner" <stephan.steiner@> wrote: >> >>> Henon >>> >>> The task isn't hanging, it's crapping out somehow without so much as an >>> inkling of an indication as to why. And for some reason, the Parralel >>> Tasks >>> window doesn't show any threads whatsoever, even when the task is still >>> running. >>> >>> Looking at the constructor you can see that it can hardly be a deadlock >>> - >>> the task simply dies. There's no blocking method calls either. I've >>> attached >>> an event handler for UnobservedTaskException, but it catches nothing >>> either. >>> >>> All I see in the output window is >>> >>> 08-18 21:03:17.390 I/SmartAppMobile( 3434): Controller not yet >>> instantiated >>> 08-18 21:03:19.275 I/SmartAppMobile( 3434): Instantiating controller >>> Loaded assembly: System.ServiceModel.Web.dll [External] >>> Loaded assembly: System.Runtime.Serialization.dll [External] >>> Loaded assembly: System.ServiceModel.dll [External] >>> 08-18 21:03:20.095 D/CLIPBOARD( 3434): Hide Clipboard dialog at Starting >>> input: finished by someone else... ! >>> >>> >>> >>> -- >>> View this message in context: >>> http://mono-for-android.1047100.n5.nabble.com/Task-Parallel-Framework-issues-tp5711359p5711397.html >>> Sent from the Mono for Android mailing list archive at Nabble.com. >>> _______________________________________________ >>> Monodroid mailing list >>> Monodroid@.ximian >>> >>> UNSUBSCRIBE INFORMATION: >>> http://lists.ximian.com/mailman/listinfo/monodroid >>> >>> >> _______________________________________________ >> Monodroid mailing list >> Monodroid@.ximian >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid >> >> > > > -- > Extreme Knowledge is not something for which he programs a computer but > for > which his computer is programming him. > > -Wozniak > > > - if my programming advice has helped you, feel free to donate to : > <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ> > > <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ> > <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ> > > _______________________________________________ > Monodroid mailing list > Monodroid@.ximian > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Task-Parallel-Framework-issues-tp5711359p5711589.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid