Click to See Complete Forum and Search --> : App not completely exiting?


Craig Gemmill
April 1st, 2001, 01:13 PM
When I unload my application it all closes yet it remains in Task Manager as "Running". I have tried using End with no avail. I also checked for forms that may not have been closed. Is it possible that some components are keeping it running? Any ideas on how to determine what is keeping it running is greatly appreciated!

Iouri
April 2nd, 2001, 08:18 AM
You have to check that all the form are closed and set to Nothing. That will release the memory. End statement does not release the memory.


Iouri Boutchkine
iouri@hotsheet.com

Cimperiali
April 4th, 2001, 05:18 AM
Iouri is right. And you should also set to nothing -before unloading forms!- all object/control/variable you created in your code with keyword "set..."
ie:
dim x as whatyouneed
set x = whatyouneed
or
set x= new whatyouneed
both required
set x= nothing
for a correct unload of form. Hope this help.


Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.