M
MP
Hello everyone,
I am an old C++/COM programmer that converted about 8 months ago to
C#/.Net, and I have no regrets.
I am now converting our caching subsystem from COM to .Net and I have a
little problem to resolve. Our old COM cache would cleanup "unreferenced"
entities by checking the refcount on the entities in the cache. Whenever the
refcount was equal to 2 (this means the cache had a reference and the
cleanup had another) then we knew the entity was not referenced by the
application and it would get "destroyed".
I undestand that .Net does not use refcounting, but I am confused as to
how I could cleanup in .Net. Can someone point me in the rigth direction?
Thank you!
-MP.
I am an old C++/COM programmer that converted about 8 months ago to
C#/.Net, and I have no regrets.
I am now converting our caching subsystem from COM to .Net and I have a
little problem to resolve. Our old COM cache would cleanup "unreferenced"
entities by checking the refcount on the entities in the cache. Whenever the
refcount was equal to 2 (this means the cache had a reference and the
cleanup had another) then we knew the entity was not referenced by the
application and it would get "destroyed".
I undestand that .Net does not use refcounting, but I am confused as to
how I could cleanup in .Net. Can someone point me in the rigth direction?
Thank you!
-MP.