D
Daniel
Hi,
I need to implement Dispose() for some objects that contain references to
one another...
fromObject -> (contains reference to) toObject
ViewObject->TableObject->IndexObject
ViewObject<-TableObject
if i implement dispose for all of them and call dispose for fields that
implement IDisposable - as FxCop rule says - i get stackoverflows...
i read some papers, but each of them says diferrent things (?!)...even when
sources are from MS...))
another thing, in dispose do i set all reference objects to null?
some says yes, some says no...what the heck is this??
so...how can i do this properly?
Thank you very much,
Daniel
I need to implement Dispose() for some objects that contain references to
one another...
fromObject -> (contains reference to) toObject
ViewObject->TableObject->IndexObject
ViewObject<-TableObject
if i implement dispose for all of them and call dispose for fields that
implement IDisposable - as FxCop rule says - i get stackoverflows...
i read some papers, but each of them says diferrent things (?!)...even when
sources are from MS...))
another thing, in dispose do i set all reference objects to null?
some says yes, some says no...what the heck is this??
so...how can i do this properly?
Thank you very much,
Daniel