I am using VB6 and the following code:
Private Sub cmdBacktoMenu_Click()
Unload frmOne
Set frmOne = Nothing
Load frmMainMenu
frmMainMenu.Show
End Sub
When I load the compiled program in the MainMenu it is using 7Mb of RAM, when I navigate to frmOne it jumps to 126Mb(which is expected) however, when I click this command it goes back to MainMenu and is still using 64Mb of RAM. Why isn't it returning to near the 7Mb when it initates, as the information from frmOne should be discarded entirely.
Btw,I have a sound file array if anyone is wondering why the RAM usage is so high, I'd be guessing the components aren't being completely unloaded but don't know how to do so.
Thanks, any help much appreciated, Phoenix


