I had the same problem. Make sure you are creating any controls in ViewDidLoad and use class level variables. Many times the place where the error occurs is referring to the item that needs to be fixed so don't assume that the code throwing the error is where the actual problem is.
Justin Hansen On May 8, 2012, at 4:09 AM, stevek <[email protected]> wrote: > Hello, > > I have got a project that *seems* to work on the simulator - my > understanding is that you need to go to each view controller and click on > "Simulate Memory Warning" a few times to see if other non-visible VCs cope > OK. > > However running on a device I often get "monotouch Selector invoked.." > exception, quite often from moving back from an pushed VC. > > Are there any hints on what needs to be fixed and how? > > The normal pattern I am using is a list view->select an item-> > pass that items data object into a detail view controller by: > > var xx = new XXDetailVC(theDataObject); > this.NavigationController.PushViewController(xx,true); > > etc. > > > > I would appreciate any hints/tips as I cannot work out how to fix it or how > to go about finding what objects like "0x8D3BE50" are (based on the > exception below) > > 07/05/2012 15:45:47: monotouch Selector invoked from objective-c on a > managed object (0x8D3BE50) that has been GC'ed at > MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr, IntPtr klass) > [0x00044] in > /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:210 > > > Thanks > SK > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/monotouch-Selector-invoked-from-objective-c-on-a-managed-object-that-has-been-GC-ed-Hunt-the-thimble-tp4616864.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
