Windows installer issues

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Adriatic
Posts: 6
Joined: 2013-02-25T23:57:20-07:00
Authentication code: 6789

Windows installer issues

Post by Adriatic »

I would like to use Magick++ API, and at first I've tried using "dll" installer version to install development libraries and headers.
The issue here is that the library can not seem to find the image format module in this simple code (both hardcoded paths are verified and correct):

Magick::InitializeMagick("c:\\Program Files\\ImageMagick-6.8.3-Q8");
Magick::Image magick("C:\\test.png");

the second line throws the exception Magick::ErrorMissingDelegate.

Next I've tried to avoid this issue, by downloading the Windows installer for static build, but the strange thing is that this installer does not even offer to
install development libraries and headers !?!?
Any reason why the static installer wouldn't offer static library with individual loader modules merged into the main static lib?

Any tip to solve my issue?

TIA,
Miroslav
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Windows installer issues

Post by magick »

Go to c:\Program Files\ImageMagick-6.8.3-5\Magick++_demos. Click on the button workspace. Build and execute. Does that work for you? If so, use this workspace as a template for your own custom Magick++ code.
Adriatic
Posts: 6
Joined: 2013-02-25T23:57:20-07:00
Authentication code: 6789

Re: Windows installer issues

Post by Adriatic »

Thanks for the tip. Unfortunately, this doesn't work either.

1. Button example crashes on line 61:
button.read( backGround );

Error: Unhandled exception at 0x5a564c5a in button.exe: 0xC0000005: Access violation writing location 0x01d6cfa7.

2. Demo example throws exception:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012f7d4..

on line 45:
Image model( srcdir + "model.miff" );

3. Shapes example throws exception:
Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x0012f98c..

on line 45:
Image texture( srcdir + "tile.miff" );

Note that I use Visual Studio 2008 and I have to upgrade your project file from Visual C++ 6.0, but there were no conversion errors and the projects compiled cleanly.
I don't think this is a CRT issue, at least two example show the same "missing delegate" issue here.

Any idea?
Do you have VS 6.0 project to build entire ImageMagick, so I can try building it in debug mode?

Regards,
Miroslav

PS. What about the static library idea, is this feasible ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Windows installer issues

Post by magick »

We need a starting point. Install http://www.imagemagick.org/download/bin ... 86-dll.exe. Now click on the Button workspace, build and execute. Does this work for you? It works for us under Windows 7 and 8.
Adriatic
Posts: 6
Joined: 2013-02-25T23:57:20-07:00
Authentication code: 6789

Re: Windows installer issues

Post by Adriatic »

Previously I used "Q8" version of the same release, now uninstalled the old one and installed the one from your link.

Same crashes this time, only the crash addresses are different, for example button error is now:
Unhandled exception at 0x51814f6a in button.exe: 0xC0000005: Access violation writing location 0x008dcfb4.

Demo example still throws Magick::ErrorMissingDelegate exception.
Adriatic
Posts: 6
Joined: 2013-02-25T23:57:20-07:00
Authentication code: 6789

Re: Windows installer issues

Post by Adriatic »

My test machine is Windows 7 32-bit, compiler Visual Studio 2008 with SP1.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Windows installer issues

Post by magick »

Do you install the Visual C++ 2010 Redistributable Package (even if you're using VS 2008)? See http://www.imagemagick.org/script/binar ... hp#windows near the bottom of the page.
Adriatic
Posts: 6
Joined: 2013-02-25T23:57:20-07:00
Authentication code: 6789

Re: Windows installer issues

Post by Adriatic »

Yes, I also have VS 2010 installed here too.
Installing redist package you link brings this message: A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.
Adriatic
Posts: 6
Joined: 2013-02-25T23:57:20-07:00
Authentication code: 6789

Re: Windows installer issues

Post by Adriatic »

OK, I guess you are out of the ideas to check.
Can you share your Visual studio project files so I can debug the issue myself?
Post Reply