Now that I've tested for the day, I've found something that might still be off. I've found I'm getting ImageMagick.MagickResourceLimitErrorException on my call to image.ConnectedComponents(settings). This line is run from a BackgroundWorker that periodically calls this line. Exception message is ""memory allocation failed `' @ error/vision.c/ConnectedComponentsImage/220". Stack trace is:
at ImageMagick.NativeInstance.CheckException(IntPtr exception, IntPtr result)
at ImageMagick.MagickImage.NativeMagickImage.ConnectedComponents(Int32 connectivity, IntPtr& objects)
at ImageMagick.MagickImage.ConnectedComponents(ConnectedComponentsSettings settings)
at [my call on image.ConnectedComponents(settings)]
at Project.Form1.objectLeftBackgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in [path]:line 574 (<- the calling method)
I've made sure to call MagickImage.Dispose() on all my ImageMagick files when not in use. Is this something on my end, or at least something I can act upon? Maybe I'm making my calls too quickly. Since you've just added in the ConnectedComponentsSettings code, I figured I should report this at least.
at ImageMagick.NativeInstance.CheckException(IntPtr exception, IntPtr result)
at ImageMagick.MagickImage.NativeMagickImage.ConnectedComponents(Int32 connectivity, IntPtr& objects)
at ImageMagick.MagickImage.ConnectedComponents(ConnectedComponentsSettings settings)
at [my call on image.ConnectedComponents(settings)]
at Project.Form1.objectLeftBackgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in [path]:line 574 (<- the calling method)
I've made sure to call MagickImage.Dispose() on all my ImageMagick files when not in use. Is this something on my end, or at least something I can act upon? Maybe I'm making my calls too quickly. Since you've just added in the ConnectedComponentsSettings code, I figured I should report this at least.