This really isn't much of a tip but I see the problem surfacing in this forum at least once or twice a week.
Never assume that terminating a VB application restores Windows to the state it held before the application was sarted. Executing the "End" statement only terminates program execution without releasing the memory resources allocated with the load of each form. Additional resources are depleted every time the application is started and ended.
To help avoid memory leakage, use this code in your main form:
[tt]
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
For F = 0 To Forms.Count - 1
Unload Forms(F)
Next
End Sub
[/tt]
And make sure all of the app's external resources are released too!
Never assume that terminating a VB application restores Windows to the state it held before the application was sarted. Executing the "End" statement only terminates program execution without releasing the memory resources allocated with the load of each form. Additional resources are depleted every time the application is started and ended.
To help avoid memory leakage, use this code in your main form:
[tt]
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
For F = 0 To Forms.Count - 1
Unload Forms(F)
Next
End Sub
[/tt]
And make sure all of the app's external resources are released too!