micheller
micheller

Reputation: 173

Memory violation when running Magick++ programs

I'm having the issue running any of the Magick++ program, the programs linked and compiled successfuly but when i am running them i am getting the following error.

Inside Call stack Tab:

CORE_RL_Magick++_.dll!6b004bca() 
[Frames below may be incorrect and/or missing, no symbols loaded for CORE_RL_Magick++_.dll] 
CORE_RL_Magick++_.dll!6affb2d8() 
>   button.exe!main(int __formal=-1990322582, char * * argv=0x53535330) Line 65 C++

Inside Output Tab:

'button.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
First-chance exception at 0x6b004bca in button.exe: 0xC0000005: Access violation writing location 0x00bbd458.
Unhandled exception at 0x6b004bca in button.exe: 0xC0000005: Access violation writing location 0x00bbd458.
First-chance exception at 0x6b004bca in button.exe: 0xC0000005: Access violation writing location 0x00bbd458.
Unhandled exception at 0x6b004bca in button.exe: 0xC0000005: Access violation writing location 0x00bbd458.

Here is the things i've already tried.

But I'm still getting the same error after re-installing OS , Visual studio and Magick++.

what is this Access Violation writing error ?

P.S: I am using Windos 7 x64 and I am already logged in as an Administrator.

Upvotes: 1

Views: 971

Answers (2)

Ulrich Eckhardt
Ulrich Eckhardt

Reputation: 17415

"Access violation writing" means that your program tried to write to a address it didn't have write access for. There are also access violations for reading and probably execution of code. You can easily get this:

char* ptr = "foo";
strcpy(ptr, "bar");

Suggestions:

  • Create a debug-build of the program and look at the stack trace to find out what sequence of calls caused the error.
  • Search the web for this error in this program and at the location you already found.

Upvotes: 1

Bob Friesenhahn
Bob Friesenhahn

Reputation: 306

I recommend to build Magick++ from source code and then use a project file for one of the Magick++ tests/demos as an example for how to create the project file for your own application. Did you build from source code or are you using prepared DLLs from a binary install package? Are you using Magick++ from ImageMagick or from GraphicsMagick?

Bob Friesenhahn (Magick++ original author)

Upvotes: 1

Related Questions