My app is suspending and it's killing me
BlitzMax Forums/BlitzMax Programming/My app is suspending and it's killing me
| ||
I have a small little (and windowed) demo I'm working on with GNet. When two people are connected and "playing" if someone moves the window (eh... keeps the mouse held down on the titlebar for 5+ seconds) the player gets disconnected. Does anyone know how I can fix/work around this? |
| ||
Do you rely on the WaitEvent() queue? Because nothing is updated then until you release the mouse. You could use a hook function instead. |
| ||
Add a thread that runs in the background to make sure the connection stays alive? |
| ||
Do you rely on the WaitEvent() queue? Because nothing is updated then until you release the mouse. You could use a hook function instead. I use PolledInput. Eh... moving everything into a hook is messy and I'm not sure it would be very safe (accessing Globals, running functions, etc) from inside a hook. Add a thread that runs in the background to make sure the connection stays alive? I want to keep things single-threaded. |
| ||
As above, you will need an eventhook, but you might be able to have it just send a simple "ping" to ensure that other servers know you are still alive? Not sure if that's possible with GNet... |