At the risk of getting my wrists slapped by the Tek-Tips community, I'm going to ask this question...
I've searched the forums and cant seem to find a post or a FAQ that clears it up for me.
If this is my piece of code in VB .NET...
How do I release the memory for this after I'm done with it?
Do I use the Dispose method? Or do I set frm = nothing?
What do i do if the objects i'm using dont support the IDisposable interface?
Thanks
I've searched the forums and cant seem to find a post or a FAQ that clears it up for me.
If this is my piece of code in VB .NET...
Code:
dim frm as new Form1
frm.datagrid1.datasource= me.dataset1
frm.show
How do I release the memory for this after I'm done with it?
Do I use the Dispose method? Or do I set frm = nothing?
What do i do if the objects i'm using dont support the IDisposable interface?
Thanks