[Gtk-sharp-list] SIGIOT - application termination

luca luca.maccari at gmail.com
Mon May 9 08:41:47 EDT 2011


hi, i've got the main gui (
http://imageshack.us/photo/my-images/21/screenshotvd.png/ )

create 
line 135 -Gtk.Menu fileMenu = new Gtk.Menu();
Gtk.MenuItem menuItem = new Gtk.MenuItem("_File");

//other menu 
//

create tree
tree = new Gtk.TreeView();
//other methods

and attached to the tree there are some TreeIter and if i right-click over
those TreeIter menu' are popped 

Gtk.Menu jBox = new Gtk.Menu();
Gtk.MenuItem MenuItem1 = new Gtk.MenuItem("Create");
(for now there is only "Create" but i'm going to add some more MenuItem)

MenuItem1.Selected += insert_staz_Clicked;


add x

where x=station

when this MenuItem is clicked, a dialog appear (this dialog can be called
even from other place of the GUI, specifically a Button, anyway the
subroutine is

               HBox hbox = new HBox();
		Dialog dialog = new Dialog
                ("Insert Station", this, Gtk.DialogFlags.DestroyWithParent);
        dialog.Modal = true;
		dialog.SetDefaultSize( (width/2), (height/2));
		hbox.PackStart(dialog, false, false, 4);
		
		
		Frame dett_stazione = new Frame ("Details station  : ");
		VBox box_dett_staz = new VBox();
                //other code

when i click, on the bottom of the form, on 
                dialog.AddButton("Ok", ResponseType.Ok);	
		dialog.Response += on_ok_insertstat_response;
		
		dialog.AddButton ("Close", ResponseType.Close);
                dialog.Response += on_dialog_response;

buttons application quit with
Stacktrace:

  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x00022,
0xffffffff>
  at Gtk.Application.Run () [0x00000] in
/usr/src/packages/BUILD/gtk-sharp-2.12.10/gtk/Application.cs:135
  at micros_gestconf.MainClass.Main (string[]) [0x0002c] in
/home/luca/Projects/micros_gestconf/micros_gestconf/Main.cs:15
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

where line 135 is MenuFile recalled upon this post

Any idea?do i need to start a separate thread to handle popupMenu?

mainGUI -> add station() -> works fine
mainGUI -> right click on "station" in the treeView -> popupMenu -> add
station() -> SIGIOT

regards,
Luca


--
View this message in context: http://mono.1490590.n4.nabble.com/SIGIOT-application-termination-tp3509131p3509131.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list