Is my application still active?

Archives Forums/BlitzPlus Programming/Is my application still active?

Jeroen(Posted 2003) [#1]
Hi,

I'm using BlitzPlay for host & Client.
Now the Host I altered to BlitzPlus because it doesnt eat my DirectX performance (I use CreateWindow, I don't switch to a gfx mode).
The client is Blitz3D.

But now when my client window (Blitz3D) is active, it seems the BlitzPlus window gets inactive and after 2 minutes I get the "server is down" message. Probably because my server isn't active when another window is active.

How can I force my BlitzPlus host to be active all the time?


Rottbott(Posted 2003) [#2]
Have you tried using "AutoSuspend False"?


Jeroen(Posted 2003) [#3]
Yes, it is False by default anyway.


Rottbott(Posted 2003) [#4]
Is your client running in fullscreen mode?


Jeroen(Posted 2003) [#5]
No, it is running in windowed mode, but it should be working in both windowed/fullscreen mode eventually.


Rottbott(Posted 2003) [#6]
Hmmm. That's odd. I do the exact same thing as you but have no problems with my BlitzPlus server being active.

The problem I get is when the client is in fullscreen mode and you alt-tab out, the *client* stops responding and times out of the game. I have no problems with the server.


Jeroen(Posted 2003) [#7]
sigh :(
You use Blitzplay as well?


Rottbott(Posted 2003) [#8]
Yep, I use BlitzPlay.

What happens if you don't create a window or anything for your server? (i.e. you run it invisibly).


Jeroen(Posted 2003) [#9]
Hmmmm I'm able to try that out tommorow. Watch this space :P

Is the main loop correct? (events)

format_code('
Repeat
While WaitEvent(0)
BP_UpdateNetwork()
HandleMessages()
If EventID()=$803
BP_EndSession()
End
End If
Wend
')