in reply to Re^4: Server with GUI
in thread Server with GUI
But back to Wx:
I don't have Wx running, but looking at your server code, I see you did not get the previous point I was making about GUI eventloop code, and using sleep, system, while loops, select loops, or anything which interferes with the eventloop. Your code , as written, will just hang in the while loop, making the Wx eventloop freeze up. I don't even have to run it to see that.
You must use Wx::Socket to run sockets in Wx. Otherwise, you need to put all your while loops into a separate thread, and at your level of programming experience, I doubt you are up to that hassle. Go back and rewrite your code using the example code in Wx::Socket
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Server with GUI
by gg4000 (Novice) on Jun 02, 2012 at 22:38 UTC | |
by zentara (Cardinal) on Jun 03, 2012 at 09:42 UTC | |
by gg4000 (Novice) on Jun 03, 2012 at 09:57 UTC | |
by zentara (Cardinal) on Jun 03, 2012 at 17:46 UTC | |
by gg4000 (Novice) on Jun 03, 2012 at 19:02 UTC |