Program freezes upon closing
My game freezes when closing down. VB6 stops responding and it's getting incredibly annoying Either by manually clicking the close button in the application, or by doing so in the IDE. It tends to happen more when I hit pause, then close it in the IDE. I think it has something to do with either DirectX8 or Winsock, but I cannot be completely sure. There is also a game loop in the code that might have something to do with it.
Would anyone with experience be able to tell me what might be causing these problems?
Thanks.
Re: Program freezes upon closing
You are not closing your open objects and setting then to nothing.
Look here
Re: Program freezes upon closing
or maybe you're stuck on a loop or your doing a process that you app is not yet ready to end process?
As randem had stated, set all your object to nothing before exiting.
Anyway, try this first.
VB Code:
Private Sub Form_Unload(Cancel As Integer)
DoEvents
End Sub
Re: Program freezes upon closing
Quote:
Originally Posted by zynder
VB Code:
Private Sub Form_Unload(Cancel As Integer)
DoEvents
End Sub
This would serve no purpose...