Link to home
Start Free TrialLog in
Avatar of nvms
nvms

asked on

App closed but process remains ?

When my application closes it 'acts' as though it is still running (e.g. cannot shut down windows etc etc). In Win XP and NT etc it remains as a 'process' but not as a 'running application'. I do create quite a few class objects but I set them all to nothing on clean exit. Any ideas ? Is there an API call which totally kills any reference to the process ?

Thanks in advance

Stewart Wood
Avatar of S2
S2

Are you closeing all forms, I mean

set Form1 = nothing

at the form unload event, that might be it
Avatar of Ark
Also, close all db connections
try putting End in the form_unload event
Don't use End. If everything is cleaned up properly, you don't need it. If everything isn't, then clean it up.
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
P.S.

I agree with KDivad: never, ever, ever use End.
Avatar of nvms

ASKER

Hi

Thanks for the comments. I am using Erick37's function to clean up and keep tabs on form activities. It was great to see the suggestions but this answer was the most comprehensive. Thanks again, I cannot imagine how we ever got anything done without EE !!! I know it will come in handy next year when we're all getting a grip on VB.NET .

Stewart
"...when we're all getting a grip on VB.NET ."
I hope no.
VB.NET Sucks!!!!!!!! (Sorry I just had to say it)
Force/accepting the comment of Erick37, per user statement.

Netminder
Community Support Moderator
Experts Exchange