Thanks. I have installed the OpenBabel GUI. Recompiled as suggested. When running example.exe, a message box says
"The procedure entry point _FreeStdINCHI@4 could not be located in the dynamic link library libinchi.dll" and the program outputs 0. I also tried from within VS2010 (with target set to x86) with the same result. Any suggestions? Many thanks, Adrian -----Original Message----- From: Noel O'Boyle [mailto:baoille...@gmail.com] Sent: Donnerstag, 28. Juli 2011 09:41 To: Brüngger Adrian Cc: openbabel-discuss@lists.sourceforge.net Subject: Re: [Open Babel] OBDotNet : OpenBabel.openbabel_csharpPINVOKE exception On 27 July 2011 13:09, Brüngger Adrian <adrian.brueng...@basilea.com> wrote: > 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?) That's why it fails. The GUI installer includes the Open Babel library, and set some environment variables. In future, we plan to bundle the .NET stuff in with the GUI installer so it should be simpler for everyone. > 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.SWIGRegisterExce > ptionCallbacks_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 > > 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. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss