[Gdal-dev] gdal_translate failed in debug
Gennady Khokhorin
gok at aerometric-ak.com
Tue Jan 23 00:16:53 EST 2007
Hello, all.
Debugging gdal_translate got a "User breakpoint" dialog box with diagnostic:
HEAP[gdal_translate.exe]: Invalid Address specified to RtlFreeHeap( 2f0000, bf10c8 )
It happens at this call:
GDALClose( (GDALDatasetH) poVDS ); (line 937, gdal_translate.cpp)
Looks like VRTSimpleSource::~VRTSimpleSource() is dereferencing 3 bands in GDALClose()
and fails on delete poDS (line 1847, gdaldataset.cpp).
Should it be used VSIFree(papoBands[i]) method instead of delete papoBands[i]; ?
Output result is fine. Release version works fine.
Image is rgb 3 bands 8 bits/sample. Below is output from gdalinfo
I'm with gdal 1.4.0, no dwg/dxf support, msvc60 + win2K
Thanks in advance for suggestions.
Gennady
Driver: GTiff/GeoTIFF
Size is 3579, 4657
Coordinate System is:
PROJCS["Alaska_Albers_Equal_Area_Conic",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.2572221010002,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4269"]],
PROJECTION["Albers_Conic_Equal_Area"],
PARAMETER["standard_parallel_1",55],
PARAMETER["standard_parallel_2",65],
PARAMETER["latitude_of_center",50],
PARAMETER["longitude_of_center",-154],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (353453.269789261690000,1271805.737959691100000)
Pixel Size = (6.437376000043360,-6.437376000043360)
Metadata:
AREA_OR_POINT=Area
Corner Coordinates:
Upper Left ( 353453.270, 1271805.738) (147d22'35.78"W, 61d16'6.59"N)
Lower Left ( 353453.270, 1241826.878) (147d25'55.14"W, 61d 0'6.41"N)
Upper Right ( 376492.638, 1271805.738) (146d56'52.83"W, 61d14'50.37"N)
Lower Right ( 376492.638, 1241826.878) (147d 0'24.90"W, 60d58'50.83"N)
Center ( 364972.954, 1256816.308) (147d11'27.34"W, 61d 7'29.15"N)
Band 1 Block=3579x1 Type=Byte, ColorInterp=Red
NoData Value=255
Band 2 Block=3579x1 Type=Byte, ColorInterp=Green
NoData Value=255
Band 3 Block=3579x1 Type=Byte, ColorInterp=Blue
NoData Value=255
More information about the Gdal-dev
mailing list