GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2008-Sep-23

Title: NETDESTROYPLAYER problem
Post by: MrTAToad on 2008-Sep-23
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 ?
Title: Re: NETDESTROYPLAYER problem
Post by: Kitty Hello on 2008-Sep-23
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.
Title: Re: NETDESTROYPLAYER problem
Post by: MrTAToad on 2008-Sep-23
Uncommenting will be no problem.

Certainly wont mind trying V6 :)