timeout_add () crashes in Windows
| From: | Sebastian Kapp | Date: | Thu, 10 Oct 2002 08:19:47 +0000 |
| Subject: | timeout_add () crashes in Windows | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2523@lists.php.net to get a copy of this message | ||
Hello!
I've got another problem with php-gtk. The code below works fine in Linux but crashes in
Windows:
<?php
if (!class_exists('gtk')) {
if (strtoupper(substr(PHP_OS, 0,3) == 'WIN'))
dl ('php_gtk.dll');
else
dl ('php_gtk.so');
}
function bla () {
echo ".\n";
return 1;
}
gtk::timeout_add (100, "bla");
gtk::main();
?>
If bla () returns 0, the function is executed flawlessly and everything is ok, but if it returns 1
to indicate that is should be executed again, in Windows it crashes with a window saying php caused
an error in <unknown>.
Thanx a lot in advance! :)
______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo,
ist aber viel gunstiger! Alle Infos: http://diba.web.de/?mc=021104