F
Frederik Vanderhaegen
Hi,
I have created a datalayer which connect with a SQL-Server and in the
datalayer I store the objects that are created in a static hashtable (for
performance reasons) so I don't have to recreated the objects when I need
them and I have then only one instance of that object in the memory.
My problem is the following, the created objects are stored in the hashtable
(when not yet present). After a certain time the hashtable becomes to big.
Is there a way to find out when an object isn't used anymore by the
application so I can delete it? In other words can I find out when an object
stored in the hashtable has no more references to it?
Thx in advance
Frederik
I have created a datalayer which connect with a SQL-Server and in the
datalayer I store the objects that are created in a static hashtable (for
performance reasons) so I don't have to recreated the objects when I need
them and I have then only one instance of that object in the memory.
My problem is the following, the created objects are stored in the hashtable
(when not yet present). After a certain time the hashtable becomes to big.
Is there a way to find out when an object isn't used anymore by the
application so I can delete it? In other words can I find out when an object
stored in the hashtable has no more references to it?
Thx in advance
Frederik