|
-
Jan 29th, 2007, 11:23 PM
#1
Thread Starter
New Member
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.
-
Jan 30th, 2007, 02:37 AM
#2
Re: Program freezes upon closing
You are not closing your open objects and setting then to nothing.
Look here
-
Jan 30th, 2007, 03:07 AM
#3
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
-
Jan 30th, 2007, 03:24 AM
#4
Re: Program freezes upon closing
 Originally Posted by zynder
VB Code:
Private Sub Form_Unload(Cancel As Integer)
DoEvents
End Sub
This would serve no purpose...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|