Re: [mono-android] Task Parallel Framework issues

2012-09-03 Thread Stephan Steiner
Jon Unfortunately I ran into an installation issue (see other thread) when trying to update M4A to target Jelly Bean (I have a Galaxy Nexus but as I'm developing for an S3 I haven't found the need to upgrade to a beta version). I went through a major rewrite last week and as part of that, share a

Re: [mono-android] Task Parallel Framework issues

2012-08-29 Thread Sayed Arian Kooshesh
can you post your complete source? I will take on the challenge. What version on monodroid are you on? On Thu, Aug 16, 2012 at 2:52 PM, Stephan Steiner wrote: > Hi > > I'm having a weird issue using the TPF. > In my main activity, in the OnCreate method I'm trying to initialize > network > connec

Re: [mono-android] Task Parallel Framework issues

2012-08-28 Thread Jonathan Pryor
On Aug 28, 2012, at 6:13 AM, Stephan Steiner wrote: > And, no joy again :( The Uncaught exception doesn't get thrown.. the Task > still dies a stealthy death. Any chance you can try running on a Jelly Bean target? It's possible that mono is writing a message to stderr, and Jelly Bean (finally!)

Re: [mono-android] Task Parallel Framework issues

2012-08-28 Thread Stephan Steiner
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, "U

Re: [mono-android] Task Parallel Framework issues

2012-08-28 Thread Stephan Steiner
>Try commenting constructor code and see what happens. It might be one of those classes causing problems Unfortunately, no joy. I emptied out the constructor, and added another info message that should be called once the constructor has been called... and that message never makes it, so the task st

Re: [mono-android] Task Parallel Framework issues

2012-08-23 Thread Sayed Arian Kooshesh
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 clas

Re: [mono-android] Task Parallel Framework issues

2012-08-23 Thread Sayed Arian Kooshesh
why don't you change it to this: Controller = Controller.Instance. if(Controller !=null) > Controller.Initialize(); On Thu, Aug 16, 2012 at 2:52 PM, Stephan Steiner wrote: > Hi > > I'm having a weird issue using the TPF. > In my main activity, in the OnCreate method I'm trying to initialize

Re: [mono-android] Task Parallel Framework issues

2012-08-18 Thread Konaju Games (Dev)
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" wrote: > Henon > > The task isn't hanging, it's crapping out somehow without so much as an > inkling

Re: [mono-android] Task Parallel Framework issues

2012-08-18 Thread Miha Markic
Try commenting constructor code and see what happens. It might be one of those classes causing problems. Stephan Steiner wrote: Here's the constructor - it dumps a log message (I know that part works because private Controller() { AndroidLogModel.Model.AddLogMessag

Re: [mono-android] Task Parallel Framework issues

2012-08-18 Thread Stephan Steiner
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

Re: [mono-android] Task Parallel Framework issues

2012-08-18 Thread Stephan Steiner
Here's the constructor - it dumps a log message (I know that part works because private Controller() { AndroidLogModel.Model.AddLogMessage("Initializing controller", 1); receiver = new EventReceiver(); receiver.CallStateChangedReceived += new Eve

Re: [mono-android] Task Parallel Framework issues

2012-08-18 Thread Miha Markic
What does your Controller constructor do? Stephan Steiner wrote: Hi I'm having a weird issue using the TPF. In my main activity, in the OnCreate method I'm trying to initialize network connectivity (which potentially could take a while - I need to check if one of two addresses is reachable).

Re: [mono-android] Task Parallel Framework issues

2012-08-17 Thread Meinrad Recheis
On 16.08.2012 21:52, Stephan Steiner wrote: > Hi > > I'm having a weird issue using the TPF. > In my main activity, in the OnCreate method I'm trying to initialize network > connectivity (which potentially could take a while - I need to check if one > of two addresses is reachable). > > > So, withi

[mono-android] Task Parallel Framework issues

2012-08-16 Thread Stephan Steiner
Hi I'm having a weird issue using the TPF. In my main activity, in the OnCreate method I'm trying to initialize network connectivity (which potentially could take a while - I need to check if one of two addresses is reachable). So, within OnCreate, I start a new task (for simplicity's sake I do