Does unloading a form in VB using the Unload statement cause a Memory leak? I had read this
somewhere. Please let me know.
Thanks
Printable View
Does unloading a form in VB using the Unload statement cause a Memory leak? I had read this
somewhere. Please let me know.
Thanks
I've never heard that. From what i know, the END statement is the one that causes memory leaks. Unloading a form is the normal way to do things.
Nick A.
Make sure you set the form to nothing after unloading it.
private Sub Form_Unload (Cancel as Integer)
'//Unload The Form
Unload Form1
'//set Form to nothing to Prevent Memory Leaks
set Form1 = nothing
End Sub
Kris
Software Engineer
Phoenix,AZ