<DIV><FONT color=#000000 size=3>The following code is for reading&nbsp;raster&nbsp;from sde-oracle DB:</FONT></DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>///////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=3>&nbsp;BOOL DEM::sdeReadDem(const char *szFileName)<BR>{</FONT></DIV>
<DIV><FONT size=3>&nbsp;GDALRegister_SDE();<BR>&nbsp;GDALOpenInfo OpenInfo(szFileName , GA_ReadOnly);<BR>&nbsp;GDALDataset&nbsp; *poDataset;<BR>&nbsp;poDataset=SDEDataset::Open(&amp;OpenInfo);</FONT></DIV>
<DIV><FONT size=3>.....//poDataset !=NULL, read data sucessfully!</FONT></DIV>
<DIV><FONT size=3>&nbsp;</FONT></DIV>
<DIV><FONT size=3>SDEDataset *pTempDS=(SDEDataset *)poDataset;<BR>&nbsp;if(pTempDS)<BR>&nbsp;{<BR>&nbsp;&nbsp;<FONT color=#0000f0>delete pTempDS;//Access Violation occured!--------&gt;access violate with SDE.DLL</FONT></FONT></DIV>
<DIV><FONT size=3><FONT color=#0000f0>//Directly&nbsp; delete </FONT><FONT color=#000000><FONT color=#0000f0>poDataset also &nbsp;lead to violation.</FONT><BR>&nbsp;&nbsp;pTempDS = NULL;<BR>&nbsp;}<BR>&nbsp;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>