[gdal-dev] Incorrect use of MEM driver?

Even Rouault even.rouault at mines-paris.org
Fri Jun 5 16:38:57 EDT 2009


Instead of sprintf("%p"), use CPLPrintPointer() that will add then 
necessary "0x" prefix in the case of the MSVC runtime library.

Le Friday 05 June 2009 21:51:20 Gregory, Matthew, vous avez écrit :
> My pointer address is something like 0x00126324.  When formatted into
> the filename string, it becomes 00126324 (without the '0x').  Then, in
> CPLScanPointer, it skips the MS specific code (lines 877-886) and calls
> CPLScanULong which returns 126324, which I think is causing the bad
> pointer.  




More information about the gdal-dev mailing list