[gdal-dev] Re: The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception. when gdal.Allregister() calls

Tamas Szekeres szekerest at gmail.com
Tue Jun 29 17:33:07 EDT 2010


This message justifies my previous statement about one or more missing dlls
during the execution. Make sure all of the dependencies available in the
directory of the executable or in the PATH environment. Use the dependency
walker <http://www.dependencywalker.com/> to examine the dll dependencies,
and the process
monitor<http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx>to
inspect which dll-s couldn't be loaded at run time.

Best regards,

Tamas



2010/6/28 mail2vajram <mail2vajram at gmail.com>

>
> The type initializer for 'OSGeo.GDAL.GdalPINVOKE'  threw an exception
>
>
>
>
>
> details:
>
> System.TypeInitializationException: The type initializer for
> 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException:
> Unable to load DLL 'gdal_wrap': The specified procedure could not be found.
> (Exception from HRESULT: 0x8007007F)
>   at
>
> OSGeo.GDAL.GdalPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_Gdal(ExceptionDelegate
> applicationDelegate, ExceptionDelegate arithmeticDelegate,
> ExceptionDelegate
> divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate,
> ExceptionDelegate invalidCastDelegate, ExceptionDelegate
> invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate
> nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate,
> ExceptionDelegate overflowDelegate, ExceptionDelegate
> systemExceptionDelegate)
>   at OSGeo.GDAL.GdalPINVOKE.SWIGExceptionHelper..cctor()
>   --- End of inner exception stack trace ---
>   at OSGeo.GDAL.GdalPINVOKE.SWIGExceptionHelper..ctor()
>   at OSGeo.GDAL.GdalPINVOKE..cctor()
>
>
>
>
> I got the same exception after reinstall the fwtools.........
>
> why
>
> help me .....
> thank you
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/The-type-initializer-for-OSGeo-GDAL-GdalPINVOKE-threw-an-exception-when-gdal-Allregister-calls-tp5220732p5229427.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/20100629/09a9bee1/attachment.html


More information about the gdal-dev mailing list