Sometimes when I exit my VB6 app... sometimes it still shows as running in the task bar. I unload all forms with a loop when exiting.
However when I try to Set Forms=Nothing in the loop.... sometimes it gives me errors.....so i commented that portion out.... here is the code for the loop in the Form/Unload event.
Dim iClearAll As Integer
'loop thru the forms collection and unload each form
For iClearAll = 0 To Forms.Count - 1
Unload Forms(iClearAll)
'Set Forms(iClearAll) = Nothing
Next
How do I make sure that all processes are terminated when I exit... and sample code?
However when I try to Set Forms=Nothing in the loop.... sometimes it gives me errors.....so i commented that portion out.... here is the code for the loop in the Form/Unload event.
Dim iClearAll As Integer
'loop thru the forms collection and unload each form
For iClearAll = 0 To Forms.Count - 1
Unload Forms(iClearAll)
'Set Forms(iClearAll) = Nothing
Next
How do I make sure that all processes are terminated when I exit... and sample code?