ErrorMissingDelegate when drawing to blob C++
Posted: 2013-04-30T14:55:33-07:00
Hello,
I am using ImageMagick to draw a rectangle with some text on it, writing that to a blob, and then taking the data out of the blob and passing it out of my program.
Works fine when I install ImageMagick and use InitializeMagick(NULL), even if I go in and manually remove 'C:\Program Files (x86)\ImageMagick-6.8.5-Q8;' from the system path as long as I don't rename that folder (so it's obviously finding it somehow else as well).
However,we'd like to bundle the library in with everything else, so I've renamed the program files folder to tell it to use the local version which is an exact copy of the other version. I've taken all the dll's needed by the dependency walker and stuck them in the same folder and now it's initializing just fine, but was giving me an error message when I called "errorImg.font("Arial")" switching it over to: errorImg.font("@C:\\windows\\fonts\\Arial.ttf"); seems to have fixed that problem.
Now it's crashing when I try to write my data to a blob, so the biggest question is why is it any different if I initialize from the exact same files from a different path instead of the system path?
I could probably post some code if it'd help.
Thanks in advance.. this one is starting to get frustrating.
-Matt
I am using ImageMagick to draw a rectangle with some text on it, writing that to a blob, and then taking the data out of the blob and passing it out of my program.
Works fine when I install ImageMagick and use InitializeMagick(NULL), even if I go in and manually remove 'C:\Program Files (x86)\ImageMagick-6.8.5-Q8;' from the system path as long as I don't rename that folder (so it's obviously finding it somehow else as well).
However,we'd like to bundle the library in with everything else, so I've renamed the program files folder to tell it to use the local version which is an exact copy of the other version. I've taken all the dll's needed by the dependency walker and stuck them in the same folder and now it's initializing just fine, but was giving me an error message when I called "errorImg.font("Arial")" switching it over to: errorImg.font("@C:\\windows\\fonts\\Arial.ttf"); seems to have fixed that problem.
Now it's crashing when I try to write my data to a blob, so the biggest question is why is it any different if I initialize from the exact same files from a different path instead of the system path?
I could probably post some code if it'd help.
Thanks in advance.. this one is starting to get frustrating.
-Matt