Hi all
I'm tearing my hair out trying to find out why my forms won't go out of scope..
For example
My code is
Dim objform as frmProductEdit
Set objform = new frmproductEdit
ObjForm.showdialog
'Then - when the form is closed by user
objform = nothing
I'm using the .net memory profiler and the number of live instances of a form does not decrease when i close the form
Therefore pretty soon, my app starts to struggle for memory as the product form is opened a number of times
I've tried using objform.dispose before setting it nothing and calling garbage collection but nothing seems to kill off the form instance
Any ideas on what i'm doing wrong. I'm pretty new to .net from vb6
Cheers
MArk
I'm tearing my hair out trying to find out why my forms won't go out of scope..
For example
My code is
Dim objform as frmProductEdit
Set objform = new frmproductEdit
ObjForm.showdialog
'Then - when the form is closed by user
objform = nothing
I'm using the .net memory profiler and the number of live instances of a form does not decrease when i close the form
Therefore pretty soon, my app starts to struggle for memory as the product form is opened a number of times
I've tried using objform.dispose before setting it nothing and calling garbage collection but nothing seems to kill off the form instance
Any ideas on what i'm doing wrong. I'm pretty new to .net from vb6
Cheers
MArk