posted 20 years ago
I wrote a class for exactly this purpose. It's called TtlReference. Basically, it maintains a reference to an object for a TTL (time to live) amount of time. A separate thread runs in the background to clear references that have expired.
James Carman, President<br />Carman Consulting, Inc.