What kind of application you develop Console/WinForms/<a href="http://ASP.NET" target="_blank">ASP.NET</a> ?<br>Wouldn't it be sufficient to use 32 bit binaries and compile your app with the /platform:x86 option?<br><br>
Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2009/2/12 Tri <span dir="ltr"><<a href="mailto:rsosnowski@cableone.net" target="_blank">rsosnowski@cableone.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi Tamas and others - thanks for the help.<br>
<br>
By application executing directory - I've copied the files to both the bin<br>
directory under the project and the obj, Debug directory under the project.<br>
When I run the application in debug mode, the same problem occurs:<br>
<br>
System.TypeInitializationException: The type initializer for OSGeo.OGR.Ogr<br>
threw an exception<br>
<br>
InnerException: The type initializer for OSGeo.OGR.OgrPINVOKE threw an<br>
excpetion<br>
<br>
I am using the 64 bit compiled code from you on Vista 64 bit machine.<br>
<br>
Any more ideas? Thanks.....<br>
<div><div></div><div><br>
<br>
<br>
Tamas Szekeres wrote:<br>
><br>
> Hi,<br>
><br>
> You might have to copy all of the dll-s (*_csharp.dll, *_wrap.dll,<br>
> gdal16.dll, proj.dll etc.) to the application executing directory.<br>
><br>
> Best regards,<br>
><br>
> Tamas<br>
><br>
><br>
><br>
> 2009/2/11 Tri <<a href="mailto:rsosnowski@cableone.net" target="_blank">rsosnowski@cableone.net</a>><br>
><br>
>><br>
>> Can't get GDAL / OGR to work with CSharp. Using the CSharp dlls, I keep<br>
>> getting exceptions like:<br>
>><br>
>> OgrPINVOKE, threw an exception.<br>
>><br>
>><br>
>> TO TRY TO GET TO WORK I DID:<br>
>> - Copied the csharp dlls into project,<br>
>> - Created a reference to the dlls.<br>
>><br>
>> What am I doing wrong?<br>
>><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://n2.nabble.com/GDAL---CSharp-tp2308674p2308674.html" target="_blank">http://n2.nabble.com/GDAL---CSharp-tp2308674p2308674.html</a><br>
>> Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
>><br>
>> _______________________________________________<br>
>> gdal-dev mailing list<br>
>> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
>><br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
<br>
</div></div><font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/GDAL---CSharp-tp2308674p2312047.html" target="_blank">http://n2.nabble.com/GDAL---CSharp-tp2308674p2312047.html</a><br>
</font><div><div></div><div>Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br>