Memory Leak -- Array of Objects
How do I prevent a memory leak If I have an array of objects that I need to keep open for the duration of the program.. I have a network monitor type program that is having memory leaks in it. I have a timer that runs every minute and I am noticing that I have memory leaks. I keep a reference to objects through an array.. Could that be what is causing the memory leak..
Guest UserPosted Mar 2, 2009, 3:34 PM
You would need to set your reference variables either to null or point them at other objects to remove the references to the objects that you expect to be disposed of.