|
-
Jan 2nd, 2000, 12:22 PM
#1
Thread Starter
Lively Member
My program hangs everytime it attempts to close. The last two lines are
Unload Me
Exit Sub
And one of these seems to be the culprit. Any help would be appreciated.
-
Jan 2nd, 2000, 12:32 PM
#2
Put a breakpoint on the Unload Me line and step through the code to see what is happening.
------------------
Marty
-
Jan 2nd, 2000, 12:39 PM
#3
Thread Starter
Lively Member
Actually, I have done that. The Unload Me statement seems to work, but when the Exit Sub line is executed, the program freezes. During debugging, it halts VB; during run, its process won't end.
-
Jan 2nd, 2000, 12:40 PM
#4
Thread Starter
Lively Member
Actually, I have done that. The Unload Me statement seems to work, but when the Exit Sub line is executed, the program freezes. During debugging, it halts VB; during run, its process won't end.
I was hoping that someone had seen this before (like I am leaving something open in the background of the program to cause this), and could give me a hand.
Thanks for your help, though.
-
Jan 2nd, 2000, 12:45 PM
#5
If you want to, send me a zip file of your project and I'll take a look at it. (I won't get a chance to do anything with it until tomorrow night.)
------------------
Marty
-
Jan 2nd, 2000, 01:16 PM
#6
Guru
try this on your unload, possibly some other forms are still loaded, preventing the termination of your app....
on error resume next
dim frm as form
for each frm in form
if frm.Caption <> me.caption then
unload frm
end if
next frm
unload me
-
Jan 2nd, 2000, 01:31 PM
#7
Thread Starter
Lively Member
Actually, there is only the one form involved (and one module). Would a problem with either of the following keep the program from terminating?
Inet control
Database objects
-
Jan 2nd, 2000, 01:55 PM
#8
Guru
I would guess the Inet control....try removing it and see what happens...
-
Jan 2nd, 2000, 05:32 PM
#9
Yes it is the inet control. If it is still executing, it will just seem to be stuck. Try canceling the operation(s) before unloading.
------------------
Vincent van den Braken
EMail: [email protected]
ICQ: 15440110
Homepage: http://www.azzmodan.demon.nl
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
|