Hi Andreas, This likely isn't the cause of the problem, but why are you calling base.ViewDidLoad() inside Loaddata()? You probably shouldn't be doing that...
Could you file a bug on http://bugzilla.xamarin.com with a sample project that illustrates this issue? That would make it easier for us to look into the problem and figure out what is going wrong. Unfortunately, the sample snippet you pasted isn't enough context to figure out the problem :-( Thanks, Jeff On Mon, Sep 26, 2011 at 8:37 AM, Andreas Ploetzeneder < [email protected]> wrote: > Hello, > > Why does my UITableCellView Crash when i press the button? > > TouchUpInside > > > Error: > > Stacktrace: > > at (wrapper managed-to-native) > MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) > <IL 0x0009f, 0xffffffff> > > at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00042] > in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 > > at Siemens3G.Application.Main (string[]) [0x00000] in > /Users/ploetzi/Projects/Siemens3G/Siemens3G/Main.cs:16 > > at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object > (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff> > > > Best regards > > > public ServerCell () : base ("ServerCell", null) > > { > > MonoTouch.Foundation.NSBundle.MainBundle.LoadNib ("ServerCell", this, > null); > > Initialize (); > > } > > void Initialize () > > { > > } > > public UITableViewCell Cell{ > > get{return cell; > > } > > } > > public void Loaddata () > > { > > System.Diagnostics.Debug.WriteLine("LoadData"); > > Buttonrund.TouchUpInside+=HandleButtonTouchUpInside; > > base.ViewDidLoad (); > > } > > void HandleButtonTouchUpInside (object sender, EventArgs e) > > { > > var button = sender as UIButton; > > Console.WriteLine("{0} touched", > button.Title(UIControlState.Normal)); > > } > > > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
