G
Guest
Hi,
I have a form containing controls, a timer, and the EventLog component.
I also create some new instances of classes that do not implement idisposable
I don't want to leave the tidying up to the GC so...
Do I need to explicitly call EventLog.dispose() as in the following snippet?
protected overloads sub dispose(byval disposing as boolean)
if disposing
if components is nothing then
components.dispose
end if
call MyEventLog.dispose(True) <<<--
end if
end sub
Also how do I make sure that the classes that don't implement idisposable return their memory one I've finished.Do I just close them, or set them to nothing, or what?
Help much appreciated
I have a form containing controls, a timer, and the EventLog component.
I also create some new instances of classes that do not implement idisposable
I don't want to leave the tidying up to the GC so...
Do I need to explicitly call EventLog.dispose() as in the following snippet?
protected overloads sub dispose(byval disposing as boolean)
if disposing
if components is nothing then
components.dispose
end if
call MyEventLog.dispose(True) <<<--
end if
end sub
Also how do I make sure that the classes that don't implement idisposable return their memory one I've finished.Do I just close them, or set them to nothing, or what?
Help much appreciated