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.  


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to