[maemo-developers] Gtk Dialog box causing application to crash
From: Simon Budig simon at budig.deDate: Wed Aug 6 22:11:10 EEST 2008
- Previous message: Gtk Dialog box causing application to crash
- Next message: Gtk Dialog box causing application to crash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Arvind1 K (arvind1.k at tcs.com) wrote: > I'm facing a strange problem while using GTK+ Dialog box > I've used two dialogs one in IF and other in ELSE > > if (some condition) > { > GtkWidget *dialog1 = gtk_message_dialog_new (main_window, [...] > } else { > GtkWidget *dialog2 = gtk_message_dialog_new (main_window, [...] > result = gtk_dialog_run (GTK_DIALOG (dialog2)); > gtk_widget_destroy (dialog2); > } > > However if I use just a single dialog box at a time, everything works > fine. I don't understand when the problem happens. The sourcecode is not very specific and it does not explain how two dialogs come into play, since after executing this code there is just one dialog open. > I've used gdk_threads_enter() and gdk_threads_leave() whereever possible. > these dialog boxes are created on 'select' event of CList so i cannot use > gdk_threads_enter() and gdk_threads_leave(). Do you actually use threads? > I need to have few more dialog boxes, but using only 2 is causing problems > of application crash. > Can anybody address this issue? I did not yet really understand the problem, I suspect there is a lot of background information missing. Bye, Simon -- simon at budig.de http://simon.budig.de/
- Previous message: Gtk Dialog box causing application to crash
- Next message: Gtk Dialog box causing application to crash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]