
Terminating a VB program (objects still in memory?)
Hello,
I am changing the way my program terminates.
AND NOW IT WONT TERMINATE!!!
My understanding is that a VB program terminates when there are no forms
or global objects still in memory.
So I set all my global objects = Nothing
and ...
For Each frm In Forms
If frm.Name <> Me.Name Then Unload frm
Next
Unload Me
Then the program just sits there,
doing nothing,
still loaded.
Running in the IDE, I can hit End (or pause)
and I get control back.
Any ideas what I am doing wrong?
Any ideas how I can find the object(s) still in memory I may have missed?
Any other ideas?
Thanks
Greg