Re: timeout_add () crashes in Windows me

From: Date: Fri, 11 Oct 2002 12:12:14 +0000
Subject: Re: timeout_add () crashes in Windows me
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2531@lists.php.net to get a copy of this message
I just got around to playing with your code, it crashes here too (win98, and with 3 different PHP/PHP-GTK combinations including standard distro). But _not_ when I call gtk::timeout_remove() when the condition is satisfied .. which is what's supposed to happen (i.e. the stuff below works fine). why would returning true work on nix? anyone? <? function bla (&$count) { global $handle; if($count < 10) { echo "$count\n"; $count++; start(&$count); } else { gtk::timeout_remove($handle); gtk::timeout_add(100, array('gtk', 'main_quit')); } } function start(&$count) { global $handle; $handle = gtk::timeout_add (100, "bla", &$count); } $count = 0; start($count); gtk::main(); ?>

« previous php.gtk.general (#2531) next »