Hi,
I had the same issue. 

The following code crashes if it is called during the memory warning if the 
object was already created. It doesn't crash on the sim.
MyViewController _MyViewController;

void Create(){
_MyViewController = new MyViewController();
}

I don''t think it is related I also get the following sometimes from UiWebView

Wednesday, February 22, 2012 7:52:38 AM    at 
MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String 
principalClassName, System.String delegateClassName) [0x00000] in <filename 
unknown>:0 
  at .Application.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Wednesday, February 22, 2012 7:52:38 AM  
MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: 
NSInvalidArgumentException Reason: -[__NSArrayM document]: unrecognized 
selector sent to instance 0x190cd90
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String 

Art


On Feb 22, 2012, at 8:41 AM, Rolf Bjarne Kvinge <[email protected]> wrote:

> Hi Leigh,
> 
> What might be happening is that ObjC runs cleanup code after the memory 
> warnings which ends up freeing objects you don't normally expect to be freed.
> 
> You can simulate memory warnings in the simulator to try this out.
> 
> Rolf
> 
> On Wed, Feb 22, 2012 at 2:20 PM, Leigh Bowers <[email protected]> 
> wrote:
> Hi Rolf.
> 
> No - the crash happens at different points, so it looks like it's a GC issue.
> 
> I'm playing a YouTube video in a UIWebView, and I've noticed a few memory 
> warnings.
> 
> On 22 Feb 2012, at 13:16, Rolf Bjarne Kvinge wrote:
> 
>> Hi,
>> 
>> Is the crash 100% reproducible with the exact same steps every time? If not, 
>> it's most likely a GC'ed object (in particular an instance of ArticleScreen).
>> 
>> Rolf
>> 
>> On Wed, Feb 22, 2012 at 2:03 PM, MilkyJoe <[email protected]> 
>> wrote:
>> BTW: It looks to me like something has been garbage collected prematurely,
>> but I'm not 100% sure.
>> 
>> --
>> View this message in context: 
>> http://monotouch.2284126.n4.nabble.com/Getting-a-SIGABRT-on-the-device-tp4410210p4410211.html
>> Sent from the MonoTouch mailing list archive at Nabble.com.
>> _______________________________________________
>> MonoTouch mailing list
>> [email protected]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>> 
> 
> 
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to