<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="OWAFontStyleDivID" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
Hello all, I am attempting to create a C# WCF service to convert GeoJSON -> other formats. File Geodatabase is desired. I am using the latest C# GDAL bindings and the driver is being recognized and loaded, but it seems I'm bumping into a write lock?<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
I receive an AccessViolationException (Attempted to read or write protected memory. This is often an indication that other memory is corrupt) using the following code. The files in the FGDB directory are created.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
outputDriver = Ogr.GetDriverByName("FileGDB");</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
outputDataSource = outputDriver.CopyDataSource(dataSource, outputFilePath, null);</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Any clue what is causing this lock or how I could get around this?<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Thanks!​<br>
</div>
<p><br>
</p>
</div>
</body>
</html>