NETDESTROYPLAYER problem

Previous topic - Next topic

MrTAToad

I have found that when I try to destroy the host computer's network connection, the program abnormally terminates.

I'm using the following code to shut down the host connection :

Code (glbasic) Select
DDgui_popdialog()
IF playerID$<>""
// Send a message to all players
NETSENDMSG(playerID$,"",HOSTHASLEFT$)
SLEEP 1000
NETDESTROYPLAYER playerID$
ENDIF


which then exits the function its called in.

I then find the program crashes between HERE2 and HERE21

Code (glbasic) Select
DEBUG "HERE2"

xPos=options.screenWidth/2
DEBUG "HERE21"


Any idea why its doing this ?

Kitty Hello

Sounds like  abug. The player is not destroyed immediately, but after a while in a thread.
It's fixed in version 6. Please be patient, and uncomment that line so far (can you?)

I might send you a beta SDK if you want.

MrTAToad

Uncommenting will be no problem.

Certainly wont mind trying V6 :)