o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Class_Terminate doesn't execute when an object is set to nothing -

Howdy, I've run into a bit of a problem. I've been in the process of writing a multi-user game. I've embeded sockets in a class module so that each player has their own socket. Now what happens is this: When a player quits, the player object saves player data, closes the socket and then runs KillPlayer, which is a function to set the player object to nothing. Funny thing is, the Class_Terminate Sub never goes off. Which is where I have all the code to set objects within the player object to nothing. I've declared all my objects properly: Public Player As Persona ... Set Player = New Persona ... Set Player = Nothing ... The same with all the objects the player object uses (socket, timer, etc.)

Has anyone run into this problem? Any possible routes for me to fix this?

Thanks in advance.

 


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/genitalh/okquestions.com/relquery.php on line 79