I created a sample program with two dialogs. Both dialog boxes have a window with an image, one calls pictureBox1.Image.Dispose (); in a secure override, void Dispose (bool disposing) and the other not.
When you run the program and use the Task Manager to look at memory usage, it becomes quite obvious that a dialog that does not call pictureBox1.Image.Dispose (); memory leak is very bad.
Does anyone have a suggestion for a tool that would identify the problem in such a clear way?
Is there a way to calculate the allocation / deallocation of memory for a specific C # source file? At least that was what I was able to do with unmanaged C ++.
source share