| View previous topic :: View next topic |
| Author |
Message |
Vorash
Joined: 23 Oct 2006 Posts: 4
|
Posted: Wed Oct 25, 2006 4:51 pm Post subject: Continuous loop |
|
|
Hey,
I am trying to make a simple instant messenger that uses a PHP class do the AIM stuff (connect to the server etc)...
http://www.phpclasses.org/browse/package/1755.html
...My problem is that this bit of code...
| Code: | while(1){
$this -> aim -> recieve();
$this -> aim -> myLastReceived = "";
} |
...has to continuously check for new data. If I add this before Gtk::main(), then the window freezes, and if I add it after Gtk::main(), then nothing happens until I close the window.
Any ideas of what I can do?
Thanks |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
|
| Back to top |
|
 |
Vorash
Joined: 23 Oct 2006 Posts: 4
|
Posted: Thu Oct 26, 2006 5:22 pm Post subject: |
|
|
Thanks.
I gave up on it in the end. Decided to try something else, just wish there was more documentation on certain classes  |
|
| Back to top |
|
 |
|