G
Guest
As been said in the discussion ‘Why not destructor
’http://msdn.microsoft.com/newsgroup...harp&mid=203132f5-041f-47c8-8c55-ec35b567dd31
It is, with no doubt, bad to write destructors.
Nevertheless, destructors are needed whenever unmanaged code need to be
handled or freed.
My class is using a Remoting object, does any of this following lines need
to be invoked in the destructor or at the dispose, or maybe I can ignore them
completely assuming the GC will clean them up when it will clean by object.
* RemotingServices.Disconnect(...);
* ChannelServices.UnregisterChannel(...);
* Or any other remoting cleaning that you think is needed.
’http://msdn.microsoft.com/newsgroup...harp&mid=203132f5-041f-47c8-8c55-ec35b567dd31
It is, with no doubt, bad to write destructors.
Nevertheless, destructors are needed whenever unmanaged code need to be
handled or freed.
My class is using a Remoting object, does any of this following lines need
to be invoked in the destructor or at the dispose, or maybe I can ignore them
completely assuming the GC will clean them up when it will clean by object.
* RemotingServices.Disconnect(...);
* ChannelServices.UnregisterChannel(...);
* Or any other remoting cleaning that you think is needed.