[Gdal-dev] Unhandled exception in myprogram.exe (SDE.DLL) : 0x00000005:Access Violation

chenxuexia xuex_chen at 126.com
Mon Sep 24 23:00:15 EDT 2007


The following code is for reading raster from sde-oracle DB: /////////////////////////////////////////////////////////// BOOL DEM::sdeReadDem(const char *szFileName)
{ GDALRegister_SDE();
 GDALOpenInfo OpenInfo(szFileName , GA_ReadOnly);
 GDALDataset  *poDataset;
 poDataset=SDEDataset::Open(&OpenInfo);.....//poDataset !=NULL, read data sucessfully! SDEDataset *pTempDS=(SDEDataset *)poDataset;
 if(pTempDS)
 {
  delete pTempDS;//Access Violation occured!-------->access violate with SDE.DLL//Directly  deletepoDataset also  lead to violation.
  pTempDS = NULL;
 }
 return TRUE;
}/////////////////////////////////////////////////////////Any approach to resolve it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070925/84ae5433/attachment.html


More information about the Gdal-dev mailing list