[Gtk-sharp-list] Dialog freezing program on Windows

Vincent Arnoux vincent.arnoux@rfo.atmel.com
Wed May 11 10:45:41 EDT 2005


Hello,
I am developping an application with Mono for Windows and I have an
issue with a Gtk.Dialog that freezes my application without any error
message.
The code is OK on Linux but I am forced to kill the app on Windows.
It is a Glade window to which I add a dialog with radio buttons. Here is
a snippet :
  
		Dialog dialog = new Dialog("Dialog", mainWindow,
Gtk.DialogFlags.DestroyWithParent);
     RadioButton     radioButton1;
     RadioButton     radioButton2;

     radioButton1 = new RadioButton("Choice 1");

     radioButton2 = new RadioButton(radioButton1, "Choice 2");

		dialog.Modal = true;
		dialog.VBox.Add(radioButton1);
		dialog.VBox.Add(radioButton2);
		dialog.AddButton("Cancel", ResponseType.Cancel);
		dialog.AddButton("OK", ResponseType.Ok);

		dialog.VBox.ShowAll();
		
		dialog.Response += new ResponseHandler (on_dialog_response);
		dialog.Run ();
		dialog.Destroy ();

Can anyone help me please ?

Vincent




More information about the Gtk-sharp-list mailing list