[Gdal-dev] GDAL - CSharp

Tamas Szekeres szekerest at gmail.com
Wed Feb 11 18:15:11 EST 2009


What kind of application you develop  Console/WinForms/ASP.NET ?
Wouldn't it be sufficient to use 32 bit binaries and compile your app with
the /platform:x86 option?

Best regards,

Tamas




2009/2/12 Tri <rsosnowski at cableone.net>

>
> Hi Tamas and others - thanks for the help.
>
> By application executing directory - I've copied the files to both the bin
> directory under the project and the obj, Debug directory under the project.
> When I run the application in debug mode, the same problem occurs:
>
> System.TypeInitializationException:   The type initializer for
> OSGeo.OGR.Ogr
> threw an exception
>
> InnerException:   The type initializer for OSGeo.OGR.OgrPINVOKE threw an
> excpetion
>
> I am using the 64 bit compiled code from you on Vista 64 bit machine.
>
> Any more ideas?  Thanks.....
>
>
>
> Tamas Szekeres wrote:
> >
> > Hi,
> >
> > You might have to copy all of the dll-s (*_csharp.dll, *_wrap.dll,
> > gdal16.dll, proj.dll etc.) to the application executing directory.
> >
> > Best regards,
> >
> > Tamas
> >
> >
> >
> > 2009/2/11 Tri <rsosnowski at cableone.net>
> >
> >>
> >> Can't get GDAL / OGR to work with CSharp.  Using the CSharp dlls, I keep
> >> getting exceptions like:
> >>
> >> OgrPINVOKE, threw an exception.
> >>
> >>
> >> TO TRY TO GET TO WORK I DID:
> >> - Copied the csharp dlls into project,
> >> - Created a reference to the dlls.
> >>
> >> What am I doing wrong?
> >>
> >>
> >> --
> >> View this message in context:
> >> http://n2.nabble.com/GDAL---CSharp-tp2308674p2308674.html
> >> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> gdal-dev mailing list
> >> gdal-dev at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >>
> >
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >
>
> --
> View this message in context:
> http://n2.nabble.com/GDAL---CSharp-tp2308674p2312047.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090212/6c6f1efc/attachment.html


More information about the gdal-dev mailing list