- Open it initially
- Take a snaphot
- Close it
- Take a snapshot
- Close it
and then look at the information with memory profiler, chosing 'Disposed Info', I get the following for the form:
Is this an indication of a memory leak? What should the numbers be if there is no leak?
Anyway, the numbers you show does not indicate a growing memory leak. You have one instance that does not get collected, but it seems to be replaced with another instance when the second snapshot is collected. After the second snapshot, the new instance was disposed, which the original instance was not in the first snapshot.
As long as the delta value for Live instances is zero, you probably don't have a growing memory leak. If the Total instances count is greater than zero then you might have a "left over" memory leak. This is a minor memory leak that doesn't grow over time. If you open and close another form, the "left over" instance gets collected.
SciTech Software AB
Users browsing this forum: No registered users and 14 guests