Open GoogleCodeExporter opened 9 years ago
One thing that is noteworthy is that using System.Drawing.Bitmap instances with
AForge is safe, because the UnlockBits method (which is always called after
processing) keeps a reference to the bitmap.
Another is that dully disposing of all UnmanagedImage instances is also safe.
I'll be providing a first patch that goes through all the Filter base classes
and fixes it for subclasses, if you're interested. But it's only just
scratching the surface of the problem.
Original comment by ncruces
on 5 Mar 2015 at 7:18
Attached a patch that fixes this for the areas of AForge I'm using: mostly
filters, blob detection and color quantization.
Original comment by ncruces
on 6 Mar 2015 at 8:03
Attachments:
Original issue reported on code.google.com by
ncruces
on 5 Mar 2015 at 7:15Attachments: