On Aug 1, 2011, at 6:52 AM, Iain Mcleod wrote: > When I attempt to debug the application, it runs for a few seconds and comms > seem fine. However before long it will crash out and I get a No Source > Available page in visual studio with a crash stacktrace (below). I'm afraid > I don't know what the exception message actually is as the No Source > Available page does not give me any exception details, and the stacktrace > does not include any of my code. My woes are further complicated by the fact > that if I try to interact with visual studio to show a disassembly, it > crashes too. > > The only info I can provide is the following stacktrace: > > 0x4E in System.Net.WebConnectionStream..ctor at > /home/mkestner/monogit/mono/mcs/class/System/System.Net/WebConnectionStream.cs:76 > 0x135 in System.Net.WebConnection.ReadDone at > /home/mkestner/monogit/mono/mcs/class/System/System.Net/WebConnection.cs:486
What's the exception? You can see some of the source at: https://github.com/mono/mono/blob/mono-android-1-0/mcs/class/System/System.Net/WebConnectionStream.cs#L76 https://github.com/mono/mono/blob/mono-android-1-0/mcs/class/System/System.Net/WebConnection.cs#L486 Full stack trace + exception type + message may be helpful. > > I also see a periodic message in the adb log: > ERROR: Unable to detach current thread from the Java VM! That's ignorable. We should probably just stop emitting that message; I'm not even sure why it happens (as in, I've read Android's source and can't fathom how we're getting a return value that would prompt us to generate that message...). > App is open source, I can also send you a build if you wish to try running > it, but I rather suspect it will not crash without running on a network with > devices to communicate with. You could always file a bug. :-) I am also reminded of: https://bugzilla.novell.com/show_bug.cgi?id=648862#c9 in which things went bad because network resources weren't disposed of in a timely fashion. Perhaps you could look for some HttpWebResponse/etc. instances and ensure that you Dispose() of them when you're done? Mono's networking infrastructure doesn't seem to like/appreciate having "too many" network connections "in flight" at once. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid