U
U
Uncle_Savva2021-05-27 12:56:25
C++ / C#
Uncle_Savva, 2021-05-27 12:56:25

Why does a read access violation error occur?

Here is the full text of the error:
An exception was thrown at 0x743C3470 (vcruntime140.dll) in ImageM.exe: 0xC0000005: Access violation while reading at address 0x01100000.

Here is the code itself:

#include <Magick++.h> 
using namespace std;
using namespace Magick;
int main(int argc, char** argv)
{
  InitializeMagick(*argv);
  Image image("100x100", "white");
  image.pixelColor(49, 49, "red");
  image.write("red_pixel.png");
  return 0;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question