MagickWand and Threading
Posted: 2010-12-13T13:56:49-07:00
I'm doing a bunch of image processing in a GUI application so processing the images in a background thread is ideal but I've come up against an issue.
MagickReadImage, MagickWriteImage, and MagickResizeImage all cause a EXC_BAD_ACCESS in the background. MagickGetImageWidth, MagickSetImageResolution and a handful of other functions do not cause any issues in the background. The immediete solution was to call the offending functions on the main thread and wait until they are done but this is less than ideal as it locks up the UI.
I guess my first question would be is are the functions I am having issues with even usable in background threads?
If any more detailed information is needed from the debugger let me know.
Thanks in advance.
MagickReadImage, MagickWriteImage, and MagickResizeImage all cause a EXC_BAD_ACCESS in the background. MagickGetImageWidth, MagickSetImageResolution and a handful of other functions do not cause any issues in the background. The immediete solution was to call the offending functions on the main thread and wait until they are done but this is less than ideal as it locks up the UI.
I guess my first question would be is are the functions I am having issues with even usable in background threads?
If any more detailed information is needed from the debugger let me know.
Thanks in advance.