PDA

Click to See Complete Forum and Search --> : virtual memory


mussy
Apr 5th, 2005, 07:50 AM
hi all
My c# program creates several windows with datagrids. the virtual memory size used by the program increase whenever a new window is opened but doen't decrease when these windows are closed(dispose is explicitlly called). Is there a memory leak in my program ,if so is there a utility i can use to locate the memory leak?
Thanks

ntg
Apr 6th, 2005, 03:45 PM
This is a very complicated subject that I won't even pretend to know well. I will just say that the garbage collector takes care of memory management and it doesn't always behave in ways that you expect. For example, VM size of your process may not change unless there is a need by other system processes to allocate memory. The most notable exceptions to automated garbage collection as it is being instrumented by GC is the use of unmanaged resources - for those, you'll have to clean up after yourself.