Regrading gtk thread
Hi, I have two buttons using one button I start a thread and using the other button I want to stop this thread. I get the following error when trying to do this : Xlib: unexpected async reply (sequence 0x26ad)! How do I solve this error and if there is a better way to do this ?? I am reading data from sockets in these threads. any suggestions would be cerainly helpful thanks sohel - Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Regrading gtk thread
On Sat, Sep 08, 2007 at 02:17:11AM -0700, Sohel wrote: I have two buttons using one button I start a thread and using the other button I want to stop this thread. I get the following error when trying to do this : Xlib: unexpected async reply (sequence 0x26ad)! How do I solve this error and if there is a better way to do this ?? Filter question: Did you read and follow http://library.gnome.org/devel/gdk/stable/gdk-Threads.html ? Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Regrading gtk thread
Hi David, Thanks for the reply. I resolved that error but I have one more problem. I want to exit the thread when I call the following function: //I have only one thread in my code gtk_thread_exit(NULL) my entire program exits, instead of the thread being stopped ?? What is the best way to stop the thread ?? thanks sohel David Neèas (Yeti) [EMAIL PROTECTED] wrote: On Sat, Sep 08, 2007 at 02:17:11AM -0700, Sohel wrote: I have two buttons using one button I start a thread and using the other button I want to stop this thread. I get the following error when trying to do this : Xlib: unexpected async reply (sequence 0x26ad)! How do I solve this error and if there is a better way to do this ?? Filter question: Did you read and follow http://library.gnome.org/devel/gdk/stable/gdk-Threads.html ? Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list - Shape Yahoo! in your own image. Join our Network Research Panel today! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Regrading gtk thread
Sohel wrote: Hi David, Thanks for the reply. I resolved that error but I have one more problem. I want to exit the thread when I call the following function: //I have only one thread in my code gtk_thread_exit(NULL) my entire program exits, instead of the thread being stopped ?? What is the best way to stop the thread ?? If, as you say, you have only one thread, then if you stop the only thread, you're stopping the program. But the fact is that in this case there's nothing to stop. -- Any given program will expand to fill available memory. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Regrading gtk thread
thanks for the input. problem has been solved Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: Sohel wrote: Hi David, Thanks for the reply. I resolved that error but I have one more problem. I want to exit the thread when I call the following function: //I have only one thread in my code gtk_thread_exit(NULL) my entire program exits, instead of the thread being stopped ?? What is the best way to stop the thread ?? If, as you say, you have only one thread, then if you stop the only thread, you're stopping the program. But the fact is that in this case there's nothing to stop. -- Any given program will expand to fill available memory. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb - Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list