Magick++ API Access Violation on Image::Read()
Posted: 2011-03-25T08:24:21-07:00
Recently installed ImageMagick with: ImageMagick-6.6.8-1-Q16-windows-dll.exe On WindowsXP Professional.
The Magick++_Demo builds fine in VIsualStudio 2005 without any issues. However when I try to debug the code I run into an Access Violation Exception in the button.cpp file.
This code segment :
Output from VisualStudio 2005:
If I can't get the demos to run how am I going to integrate the API into my existing code?
The Magick++_Demo builds fine in VIsualStudio 2005 without any issues. However when I try to debug the code I run into an Access Violation Exception in the button.cpp file.
This code segment :
Code: Select all
//
// Magick++ operations
//
Image button;
// Set button size
button.size( buttonSize );
// Read background image
button.read( backGround );
Output from VisualStudio 2005:
Code: Select all
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\Magick++_Demo_VS05\button.exe', Symbols loaded.
'button.exe': Loaded 'NOT_AN_IMAGE', No symbols loaded.
'button.exe': Unloaded 'NOT_AN_IMAGE'
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\ntdll.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\kernel32.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_Magick++_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_magick_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\X11.dll', Binary was not built with debug information.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\msvcrt.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\wsock32.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\ws2_32.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\ws2help.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\advapi32.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\rpcrt4.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\secur32.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\user32.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\gdi32.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_bzlib_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\msvcr100.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_lcms_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_ttf_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_zlib_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\vcomp100.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\CORE_RL_wand_.dll', No symbols loaded.
'button.exe': Loaded 'C:\Program Files (x86)\ImageMagick-6.6.8-Q16\msvcp100.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcp80.dll', Symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcr80.dll', Symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\imm32.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\lpk.dll', No symbols loaded.
'button.exe': Loaded 'C:\WINDOWS\SysWOW64\usp10.dll', No symbols loaded.
First-chance exception at 0x78ab0a9d in button.exe: 0xC0000005: Access violation reading location 0x00130000.
Unhandled exception at 0x78ab0a9d in button.exe: 0xC0000005: Access violation reading location 0x00130000.