المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Tracking number of a given object stored in memory



C# Programming
06-16-2009, 02:03 PM
Hi,

I'm trying to debug a smallish application which crashes approximately every 10 days with an out of memory exception. Specifically, i've established that the problem lies within a single thread, and I suspect I know which object is causing the problem, but I need to find out when copies of this object are being added and removed from the memory.

If this is not possible, could I perhaps have some general pointers as to when an object is generally added and removed from memory? I realise of course that what is likely happening isn't the application running out of physical memory, but running out of address space, but understanding the problem is getting me no closer to a solution!

Any help would be appreciated,

Thanks,

Nil