On Feb 19, 2013, at 11:02 AM, keith <ke...@buzzinteractive.co.uk> wrote: > I have an update routine that runs at the launch of an app. I keep getting > intermittent null reference exceptions (about 1 in 8 runs) at certain points > in my code where this seems not to be possible
Given that I just investigated something similar, it reminds me of this: http://docs.xamarin.com/guides/android/troubleshooting#15-unexpected-nullreferenceexceptions Whenever Dalvik aborts the process, for any reason (it's not just GREFs!), you'll see NullReferenceException's in places that "don't make sense", so you may want to take a closer look at your logcat output. > From my understanding jit compilation will compile code for generic types as > and when it needs it, after which it reuses it. Is it possible that I am > hitting some kind of jit issue as the > pattern seems to fit? If you're hitting a mono limitation, mono will normally write to stderr before aborting the process. Unfortunately, Android prior to 4.1 Jelly Bean ignores stderr, so you might not be able to see those messages, but if you're using 4.1 Jelly Bean or later you should see messages written to logcat. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid