Program Remains in Memory?

Mabsey
06-03-2005, 01:45 AM
Could anyone give me some pointers please.

I've got a routine that has an exit button. In the code I have this

Timer1.enabled = false
unloade me

The trouble is, when the person clicks this button, on occasions the program remains in memory as process.

What else am I supposed to be shutting down to make sure everything ends cleanly. The program uses multiple forms etc.

Thanks

Mabsey

stevo
06-03-2005, 01:54 AM
try looping through the forms making sure they are unloaded and cleared.

Dim frm As Form
For Each frm In Forms
Unload frm
Set frm = Nothing
Next frm

Jamesanthony
06-03-2005, 11:20 AM
Remember to set all dataconnections=nothing
Code from modules can still run with the form closed

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum