Dear open Babylonians,

I am trying to develop .NET C# code using OBDotNet. My OS is Windows 7, 64 bit.

I followed the steps given in

http://openbabel.org/docs/dev/UseTheLibrary/CSharp.html

(except I did not install the OpenBabel GUI as suggested  - why should this be 
necessary?)

Compilation of the example works fine, however, when running the example.exe, I 
got the following error
(openbabel_csharp.dll and OBDotNet.dll ARE in the same directory as 
example.exe):

[...]\OBDotNet-0.4>example.exe

Unhandled Exception: System.TypeInitializationException:
The type initializer for 'OpenBabel.openbabel_csharpPINVOKE' threw an exception.
---> System.TypeInitializationException: The type initializer for 
'SWIGExceptionHelper' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'openbabel_csharp': The 
specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at 
OpenBabel.openbabel_csharpPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_openbabel_csharp(...)
   at OpenBabel.openbabel_csharpPINVOKE.SWIGExceptionHelper..cctor()
   --- End of inner exception stack trace ---
   at OpenBabel.openbabel_csharpPINVOKE.SWIGExceptionHelper..ctor()
   at OpenBabel.openbabel_csharpPINVOKE..cctor()
   --- End of inner exception stack trace ---
   at OpenBabel.openbabel_csharpPINVOKE.new_OBConversion__SWIG_2()
   at OpenBabel.OBConversion..ctor()
   at MyConsoleApplication.Program.Main(String[] args)

Any suggestions? Many thanks in advance!
Adrian



The information transmitted by this email, including any attachments, is 
intended only for the person(s) or entity to which it is addressed and may 
contain confidential and/or legally privileged material. If you receive this in 
error, please contact the sender and delete the material from any computer.
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to