PDA

Click to See Complete Forum and Search --> : How release memory!? - READ THIS ! -


JeffSM
Nov 2nd, 1999, 12:39 PM
When you load a form with a picture (jpg or bmp) from a DLL and Unload the form, even using frmName=Nothing, the memory that it had used (including the image size) with stay in the memory.
I know this 'cause I' saw with the Norton Information.

I ask you,
how can I unload the form and free this memory?

Thanks is advance.
Jefferson

jimdalby
Nov 2nd, 1999, 09:35 PM
erm , imnot sure about this, but could the memory that is still used just be your pc being useful and keeping the prog u just ran in ram, so it will run quicker if u need it again?? Its a possibility, especially with win 98!

------------------
jimmy
ICQ:35813919
mail:jim@rdalby.f9.co.uk

Howard Stern
Nov 2nd, 1999, 10:04 PM
the tips section of this site gives this example, or something close...

Dim frm as Form

For Each frm in Forms
Unload frm
Set frm = Nothing
Next frm

...which should release all memory.

Crazy D
Nov 2nd, 1999, 10:16 PM
I remember that I read somewhere that windooz actually does free the memory, but keeps it available to the running application (and shows it as if it in use by that application), but if another application needs the memory, it will get it.

JeffSM
Nov 3rd, 1999, 02:36 AM
Thanks!
Jefferson