The code above (the first example with the local PenColor) should NOT
crash. PresentModalViewController is supposed to hold a managed reference.
If not, I'd consider that a bug.
I'm using code like that all the time and do not get any crashes. I'm using
SGen but have the experimental ref count system OFF.
But if you're using XIBs, your controllers should really have the IntPtr
constructor, as far as I know.

René

2012/8/19 rnendel11 <[email protected]>

> Because you're declaring at class scope vs. method scope.  I'm guessing you
> have SGen enabled and possibly the experimental reference count option as
> well?
>
> I stopped using SGen myself, had GC issues and crashes.  If you have those
> options enabled, try without them enabled.  Also, I'm not entirely sure of
> the details, but there are additional build parameters you have to define
> when SGen is enabled.
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/GC-ed-System-MissingMethodException-tp4656569p4656575.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

Reply via email to