Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me: End Application

Status
Not open for further replies.

justmee

Programmer
Apr 25, 2006
3
CH
Help me:)

When I press the X (close application), my application stays
in memory! How can I solve this problem?

Thanks
 
Here's the quick way if you only have forms loaded in memory:
[tt]
For F = 0 To Forms.Count - 1
Unload Forms(F)
Next
[/tt]

I'm sure some of the other members could point out some of the finer points of Unloading before terminating to avoid memory leakage.
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
1. Clear every object you declared :

Set object = Nothing


2. Clear every form you have :

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


3. Avoid using End command, coz it will force your app to terminate and can coz your system halt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top