See the Threads section in the FAQ: http://www.gtk.org/faq/#AEN462
Thanks Michael, I found the link after posting my contribution about this
issue. I tryied to apply as
explained there, but during compilation I receive the following error
message:
" undefined reference to `g_thread_init' "
though I have included the glib.h and gdk/gdk.h
Can you please help me on this?
PS:
#include <gnome.h>
#include <glib.h>
#include "interface.h"
#include "support.h"
#include "main.h"
int
main (int argc, char *argv[])
{
g_thread_init (NULL);
gnome_init ("gui", VERSION, argc, argv);
/*
* The following code was added by Glade to create one of each component
* (except popup menus), just so that you see something after building
* the project. Delete any components that you don't want shown initially.
*/
main_window = create_main_window ();
gtk_widget_show (main_window);
gdk_threads_enter ();
gtk_main();
gdk_threads_leave ();
return 0;
}
Thanks.
On Thu, 2002-04-18 at 08:03, Eric Tchepannou wrote:Hallo group, I have problems creating a GUI and receive everytime this Message: Xlib: unexpected async reply (sequence 0x1686)! I have read in the internet it is due to threads that I am using in my programm. Can someone please hellp me solving this problem? Thanks for any contribution. --- Eric Tchepannou -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Attachment:
"
Description: Binary data