[gdal-dev] Crash using mem raster on Windows

Even Rouault even.rouault at spatialys.com
Mon Oct 30 13:36:48 PDT 2017


Andrew,

> I'm creating a memory raster using the following code:
> [...]
> I read the three bands in succession.  This works fine on OSX/Linux, but
> fails when attempting to read the second band on Windows. Any thoughts on
> what might be the issue?

You need to use CPLPrintPointer() to format the pointer in a way
that will please the MEM driver

See https://github.com/OSGeo/gdal/blob/ddbf6d39aa4b005a77ca4f27c2d61a3214f336f8/gdal/alg/gdalcutline.cpp#L341

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171030/67bc8cc1/attachment.html>


More information about the gdal-dev mailing list