i am using your nice software (evaluation period) for several days, but i am facing strange problem.
at the beggning i thought that MemProf is little complicated for our Big software. so to understand it i created small application which consumes memory.
the application creates an array at start, and by pressing Add button i add an objec of my own, that have several hudred data rows, to the array.
and then another button to dismiss those new objects (i tried several ways, one of which is to assing the arraylist to null).
the problem is that the MemoProf says that my objects get cleared...but the Process Explorer shows an on-going increase of memory. when i dont click the Add the increase stops...but when i click Clear it just doesnt go down no matter how long i wait. but MemoProf says its clear! :S
any explanation, help?
When you stop using an instance in your process, the runtime will be able to garbage collect the instance. After an instance has been garbage collected, its memory will not be presented in a heap snapshot, and there will be free space on the GC heap. This space is normally not released back to the operating system, since it is very likely that your program will perform additional allocations and reuse the memory. However, if your program has free managed memory that has not been reused for a while, then the runtime might decide to release the memory back to the operating system. When this happens, the memory usage presented by the Task manager will probably decrease (if the released memory was mapped to physical memory, i.e. part of the process working set).
SciTech Software AB
Users browsing this forum: Bing [Bot], Google [Bot] and 18 guests