Link to home
Start Free TrialLog in
Avatar of JohnDoeSr
JohnDoeSr

asked on

Best place to put clean up code on exit

I've got some code to clean up a few things when exiting my program. I inserted the sub routine's name into the Form's Unload event. It worked initially in the testing stages but doesn't seem to be working when the actual program has been running for a while. I normally close the program out using the close (X) button in the upper right. I'm wondering if there's a better place to stick the exit code, or if it's just a matter of narrowing down what's causing it not to run. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

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
Avatar of JohnDoeSr
JohnDoeSr

ASKER

Yep that helped to find it. Thanks again!