[gdal-dev] Visual Studio 2005 Debug mode error
Robert Zermeno
refriguy68 at yahoo.com
Fri Mar 4 02:58:29 EST 2011
GDAL Devs,
I added GDAL into my exisiting project to see how GDAL handles WMS and JPIP and I get an exception error when calling GDALAllRegister().
This is odd to me, but I downloaded the SVN for 3-1-2011 and made modifications in nmake.opt to handle WMS and JPIP (via kakadu v5.2) files (this is not the error).
Here is the pop-up message display error output:
Visual Studio
Unhandled exception at 0x772bc41b in GDAL_DEBUG_PROBLEMS.exe:
0xC0000005: Access violation writing location 0x5a74c985.
NOW, here is the call-stack.
GetGDALDriverManager returned 0x00764360 {nDrivers=0 papoDrivers=0x00000000 pszHome=0x008794d0 "" } GDALDriverManager *
pData 0x00879580 void *
> gdal19dev.dll!VSIFree(void * pData=0x00879580) Line 573 + 0xa bytes C++
gdal19dev.dll!VSIWin32FilesystemHandler::ReadDir(const char * pszPath=0x007694e8) Line 622 + 0x9 bytes C++
gdal19dev.dll!VSIReadDir(const char * pszPath=0x007694e8) Line 67 C++
gdal19dev.dll!GDALDriverManager::AutoLoadDrivers() Line 686 + 0x11 bytes C++
gdal19dev.dll!GDALAllRegister() Line 79 C++
GDAL_DEBUG_PROBLEMS.exe!wmain(int argc=1, wchar_t * * argv=0x00874e68) Line 43 C++
GDAL_DEBUG_PROBLEMS.exe!__tmainCRTStartup() Line 594 + 0x19 bytes C
GDAL_DEBUG_PROBLEMS.exe!wmainCRTStartup() Line 414 C
>From what I see, the problem lies in the method call in gdalallregister.cpp line 76:
GetGDALDriverManager()->AutoLoadDrivers();
This should not happen. What is odd is if I build it in Release mode, I do not get this issue. However, that defeats the purpose because I want to step through the code.
Anyone can confirm my problem? Solutions why only in Debug mode this occurs?
Any suggestions would be great,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110303/0af52ad1/attachment.html
More information about the gdal-dev
mailing list