My object is passed through some sophisticated pipeline, in some parts of it, I don't have the code, I need to know what is the location when Dispose
is called on my Bitmap
!
You can add a breakpoint on System.Drawing.Image.Dispose
from your breakpoints window. Then the debugger will stop when Image.Dispose
is called and you can review where it is called from the Call Stack window.
Don't forget to turn OFF Debugging > General > Enable Just My Code.