<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>GDAL Devs,</DIV>
<DIV> </DIV>
<DIV>I added GDAL into my exisiting project to see how GDAL handles WMS and JPIP and I get an exception error when calling <FONT size=2>GDALAllRegister</FONT>().</DIV>
<DIV> </DIV>
<DIV>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).</DIV>
<DIV> </DIV>
<DIV>Here is the pop-up message display error output:</DIV>
<DIV> </DIV>
<DIV>Visual Studio<BR> Unhandled exception at 0x772bc41b in GDAL_DEBUG_PROBLEMS.exe:<BR> 0xC0000005: Access violation writing location 0x5a74c985.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>NOW, here is the call-stack. </DIV>
<DIV> </DIV>
<DIV>‡GetGDALDriverManager returned 0x00764360 {nDrivers=0 papoDrivers=0x00000000 pszHome=0x008794d0 "" } GDALDriverManager *<BR>pData 0x00879580 void *</DIV>
<DIV><BR>> gdal19dev.dll!VSIFree(void * pData=0x00879580) Line 573 + 0xa bytes C++<BR> gdal19dev.dll!VSIWin32FilesystemHandler::ReadDir(const char * pszPath=0x007694e8) Line 622 + 0x9 bytes C++<BR> gdal19dev.dll!VSIReadDir(const char * pszPath=0x007694e8) Line 67 C++<BR> gdal19dev.dll!GDALDriverManager::AutoLoadDrivers() Line 686 + 0x11 bytes C++<BR> gdal19dev.dll!GDALAllRegister() Line 79 C++<BR> GDAL_DEBUG_PROBLEMS.exe!wmain(int argc=1, wchar_t * * argv=0x00874e68) Line 43 C++<BR> GDAL_DEBUG_PROBLEMS.exe!__tmainCRTStartup() Line 594 + 0x19 bytes C<BR> GDAL_DEBUG_PROBLEMS.exe!wmainCRTStartup() Line 414 C</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>From what I see, the problem lies in the method call in gdalallregister.cpp line 76:</DIV><FONT size=2>
<DIV>GetGDALDriverManager()->AutoLoadDrivers();</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>Anyone can confirm my problem? Solutions why only in Debug mode this occurs?</DIV>
<DIV> </DIV>
<DIV>Any suggestions would be great,</DIV>
<DIV> </DIV>
<DIV>Robert</DIV></FONT></td></tr></table><br>