<DIV><FONT color=#000000 size=3>The following code is for reading raster from sde-oracle DB:</FONT></DIV>
<DIV><FONT size=3></FONT> </DIV>
<DIV><FONT size=3>///////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=3> BOOL DEM::sdeReadDem(const char *szFileName)<BR>{</FONT></DIV>
<DIV><FONT size=3> GDALRegister_SDE();<BR> GDALOpenInfo OpenInfo(szFileName , GA_ReadOnly);<BR> GDALDataset *poDataset;<BR> poDataset=SDEDataset::Open(&OpenInfo);</FONT></DIV>
<DIV><FONT size=3>.....//poDataset !=NULL, read data sucessfully!</FONT></DIV>
<DIV><FONT size=3> </FONT></DIV>
<DIV><FONT size=3>SDEDataset *pTempDS=(SDEDataset *)poDataset;<BR> if(pTempDS)<BR> {<BR> <FONT color=#0000f0>delete pTempDS;//Access Violation occured!-------->access violate with SDE.DLL</FONT></FONT></DIV>
<DIV><FONT size=3><FONT color=#0000f0>//Directly delete </FONT><FONT color=#000000><FONT color=#0000f0>poDataset also lead to violation.</FONT><BR> pTempDS = NULL;<BR> }<BR> return TRUE;<BR>}</FONT></FONT></DIV>
<DIV><FONT size=3>/////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=3>Any approach to resolve it?</FONT></DIV><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href=" http://event.mail.163.com/chanel/click.htm?from=NO_16&domain=126" target="_blank"><span style="text-decoration:underline; color:blue">网 易 Yeah.net 免 费 邮 箱 全 新 改 版,珍 藏 帐 号 开 放,快 来 抢 注 >></span> </a>