[GM-help] "Heap Corruption Detected"
Swiss army knife of image processing
Brought to you by:
bfriesen
From: Josue G. <jos...@gm...> - 2008-04-03 20:27:32
|
Hi, I'm using GraphicsMagick-1.2.020080402 on Windows with Visual Studio 2005. I've chosen 'Static Multi-Threaded DLL runtimes' as build type. I have this simple program that use Image::composite from Magick++ and when writing a TIFF file I get a message from Visual Studio: ------------------------------------------------------ Microsoft Visual C++ Debug Library Debug Error! Program: d:\projects\gmbug\Debug\gmbug.exe HEAP CORRUPTION DETECTED: after Normal Block (#2127) at 0x0125BD28 CRT detected taht the application wrote to memoery after end of head buffer. (Press Retry to debug the application) ----------------------------------------------------- Debugger points me to coders/tiff.c, WriteTIFFImage() function around line 4154, when freeing memory at ScanLineMethod case. The memory was allocated around line 4075 using scanline_size. I can provide all files needed. Here it is an excerpt of code: Image i, t; i.read("input.tif"); t = i; Geometry f(1728, 2270); f.aspect(true); i.sample(f); i.erase(); i.composite(t, 0, 0); i.write("output.tif"); regards, josue gomes |