[Gtk-sharp-list] Simple Gtk window crash when Entry's text refreshed via a timer

andrea andrea at acquacontrol.it
Mon Oct 11 09:40:34 EDT 2010

Sure, you are right!

I post the correct code:

public partial class MainWindow : Gtk.Window
	public MainWindow () : base(Gtk.WindowType.Toplevel)
		Build ();

	private bool AggiornaDataOra() 
		return true;
	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
		Application.Quit ();
		a.RetVal = true;
	protected virtual void OnButton1Clicked (object sender, System.EventArgs e)
		GLib.Timeout.Add(500, new TimeoutHandler(AggiornaDataOra));

(It need a window containing an "entry1" textbox and a "button1" button!)

It runs perfectly in Suse's image I've downloaded from mono website.
But if I try running it in a Debian armel I get the following error, is it a
Gtk library bug? (obviusly related the version I'm using in Debian!)

ERROR:tramp-arm.c:48:mono_arch_patch_callsite: code should not be reached

  at (wrapper native-to-managed) GLib.Timeout/TimeoutProxy.Handler ()
  at (wrapper native-to-managed) GLib.Timeout/TimeoutProxy.Handler ()
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x00014>
  at TestGtk.MainClass.Main (string[]) <0x00043>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0x00077>

Native stacktrace:

Debug info from gdb:

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.



(PS: sorry if I'm off topic, tell where I can post request related mono
porting on arm)
View this message in context: http://mono.1490590.n4.nabble.com/Simple-Gtk-window-crash-when-Entry-s-text-refreshed-via-a-timer-tp2967045p2989802.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list