while loop and select
| From: | will at 25sucks dot com | Date: | Sat, 17 Dec 2005 04:36:55 +0000 |
| Subject: | while loop and select | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6416@lists.php.net to get a copy of this message | ||
I've been reading about how you shouldn't use a while loop with gtk
because of the gtk::main() loop.
I was hoping it would be possible to use a Toggle Button
that when activated starts a while loop with a socket_select() statement
in it,
But when it gets to the select() the program is blocked from execution
while it waits for input and so
GTK gets frozen and cannot redraw I suppose. Then it says "Not
Responding" and dies.
Anyone have a creative solution for something like this?
thanks,
will