[gdal-dev] Memory leak from GDALRasterIO
Frank Warmerdam
warmerdam at pobox.com
Thu Jul 29 16:34:48 EDT 2010
Kevin F Webb wrote:
> Good day!
>
>
>
> I am experiencing a memory leak from looped calls to GDALRasterIO(). It
> may be something I am doing improperly
> because I use/call RasterIO() in a C++ program that runs leak free.
>
>
>
> I "migrated" the C++ code to the GDAL C API so that I can integrate some
> really old C code downstream from the GDALRasterIO() call.
>
>
>
> The leak was observed on v1.5.2, so I upgraded to 1.7.2 and am
> experiencing the same effect.
>
>
>
> Are there special options or considerations when compiling C code
> against the GDAL library?
Kevin,
You haven't shown your code, but I suspect you aren't closing the
datasource and so the block cache isn't getting cleaned up.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list