c++ - gtk_init hangs in a thread -


I have a C ++ app, which is to create gtk based popups on some events. Currently, I call that event as _displaytask and thread a thread on that thread call gtk_init () . The call is hanging on gtk_init and never returns. Someone knows why the phone is hanging? The Gtk version is gtk + -2.0.

  void * Gui :: displayTask (zero * data) {IDC_TRACE ("Gui :: Performance Task"); Gui * obj = (Gui *) data; If (obj! = NULL) {if (! G_thread_supported ()) g_thread_init (NULL); / * Safe gtk * / gdk_threads_init (); Gdk_threads_enter (); IDC_TRACE ("gtk init"); Gtk_init_check (0,0); Obj- & gt; Start (); Access to  

control gtk_init () , but it never goes to launch

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -