Can you post some code using pastebin or github's gist? Most likely is the GC - make sure the UIButton is declared outside of the method - make sure its at the class level.
On Wed, Nov 2, 2011 at 08:36, <[email protected]> wrote: > > Hi everyone, > > I'm facing an strange issue, where I do not know what to do. > > My App randomly crashes when I'm hitting UIControls (mostly UIButton). > Maybe the Garbage Collector disposes my Controls if I get a Callback from > an BLL-Thread? (I'm using a 3 Layer architecture DAL / BLL / GUI) > > The console off my device shows the following: > > Stacktrace: > at MonoTouch.UIKit.UIApplication.Main (string[],string,string) > <0x0010f> > at myApp.Application.Main(string[]) [0x00000] in > /Users/me/Projects/myApp/myApp/Main.cs > at (wrapper runtime-invoke) object.runtime_invoke_dynamic > (intptr,intptr,intptr,intptr) <0xffffffff> > > This problem only appears when I'm navigatiing to a previous > UIViewController. I'm using a UINavigationController for Navigation. > > > Best Regards, > Sebastian Kellner > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
