Re: Chat Client

From: Date: Mon, 25 Nov 2002 10:56:31 +0000
Subject: Re: Chat Client
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2724@lists.php.net to get a copy of this message
Here is my refresh method : function refresh () { $this->count++; print "refresh".$this->count."\n"; return TRUE; } and i call it in : function start_session () { $this->id=Gtk::timeout_add (500, array (&$this,'refresh')); } start_session method is called one time in the constructor PHP Crashes on windows as the second refresh call """ PHP a causé une défaillance de page dans le module <inconnu> à 0000:00678e7a. Registres : EAX=00678ee8 CS=018f EIP=00678e7a EFLGS=00010206 EBX=01aa4c10 SS=0197 ESP=0063f930 EBP=0063f97c ECX=01aa4bef DS=0197 ESI=01aa4c10 FS=2b6f EDX=0063f95c ES=0197 EDI=01aa4bf0 GS=0000 Octets à CS : EIP : 67 00 74 8e 67 00 7c 8e 67 00 7c 8e 67 00 84 8e État de la pile : 014cb8d3 00000000 00678ee8 00000000 0063f95c 2a378948 00000000 00000000 00000000 00000001 00000000 00000004 00000000 0063f958 00000001 00637000 """ ----- Original Message ----- From: "James Cameron" <quozl@us.netrek.org> To: <php-gtk-general@lists.php.net> Sent: Monday, November 25, 2002 1:48 AM Subject: Re: [PHP-GTK] Chat Client > On Sun, Nov 24, 2002 at 07:41:43PM +0100, elektronoize association wrote: > > function refresh () { > > print "refresh"; > > } > > I have a problem this "$id=Gtk::timeout_add (1000, array( &$this, > > 'refresh'));" the refresh command is executed only one time (? why ) > > You didn't return TRUE from refresh(). > > > and another problem if I had : > > $d = fgets($this->sock,1024); > > in the refresh method the program bugged > > Not understood. > > -- > James Cameron mailto:quozl@us.netrek.org > http://quozl.netrek.org/ > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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