Re: timeout_add () crashes in Windows me

From: Date: Fri, 11 Oct 2002 07:02:20 +0000
Subject: Re: timeout_add () crashes in Windows me
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2530@lists.php.net to get a copy of this message
"Steph" <sfox@php.net> schrieb am 10.10.02 12:20:28: > more to the point, which version of PHP are you running?! > > > which version of php-gtk are you running? Oh. Good point. Maybe I did something wrong here. First I installed php 4.2.3, then php-gtk 0.5.1. Trying to run php-gtk with the installed php, it crashes saying 'Unload to load dynamic library 'c:\programme\php4\php_gtk.dll' So I use the php that comes with php-gtk, and that works fine otherwise. To try the script at another computer, I only installed php-gtk 0.5.1, no other php at all. Same thing. > > > > > > > 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>. > > > > > > > > > > ______________________________________________________________________________ WEB.DE MyPage - Ultimatives Kommunikationstool! Ihre Message sofort online! Domain aenderbar! http://www.das.ist.aber.ne.lustige.sache.ms/

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