0xC0000005: Access violation writing location

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
magick
Site Admin
Posts: 11095
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-04-06T17:21:20-07:00

Variable inPixel can be NULL if your image is an odd height or width. Either check for this condition and bail or use num_row-1 and num_cols-1 in your loops.

User avatar
magick
Site Admin
Posts: 11095
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-04-10T09:30:25-07:00

Another logic error. Reverse i & j in getPixels() and pixelColor(). I is the rows and j is the columns.

Post Reply