Dear Noel,

The value of the BABEL_DATADIR is as you suggest (and points to the correct 
directory). I do see the warning messages only when I run the application from 
within VS 2010 (debug mode). When I go to the bin/Debug/ dir (where the 
executable and all the dlls and obfs are), and start the *.exe from a command 
line, I do not see any warnings.

Thanks and kind regards,
Adrian


-----Original Message-----
From: Noel O'Boyle [mailto:baoille...@gmail.com]
Sent: Mittwoch, 5. Oktober 2011 10:11
To: Brüngger Adrian
Cc: openbabel-discuss@lists.sourceforge.net
Subject: Re: [Open Babel] OBDotNet : OpenBabel.openbabel_csharpPINVOKE exception

The warning messages should disappear if you set the environment variable 
BABEL_DATADIR to point to C:\Program Files (x86)\OpenBabel-2.3.0\data. 
Otherwise it can't find aromatic.txt, etc.

- Noel

On 5 October 2011 08:55, Brüngger Adrian <adrian.brueng...@basilea.com> wrote:
> Dear Noel,
>
> Thanks for being so responsive! After having copied all dll's and obf's, the 
> example compiles and runs correctly. I got the following warning messages, 
> but I assume I can ignore them for the moment?
>
> ==============================
> *** Open Babel Warning  in OpenBabel::OBGlobalDataBase::Init
>  Cannot open aromatic.txt defaulting to compiled data.
> ==============================
> *** Open Babel Warning  in OpenBabel::OBGlobalDataBase::Init
>  Cannot open atomtyp.txt defaulting to compiled data.
> ==============================
> *** Open Babel Warning  in OpenBabel::OBGlobalDataBase::Init
>  Cannot open element.txt defaulting to compiled data.
> 44.09562
>
> Kind regards,
> Adrian
>
> -----Original Message-----
> From: Noel O'Boyle [mailto:baoille...@gmail.com]
> Sent: Dienstag, 4. Oktober 2011 20:56
> To: Brüngger Adrian
> Cc: openbabel-discuss@lists.sourceforge.net
> Subject: Re: [Open Babel] OBDotNet : OpenBabel.openbabel_csharpPINVOKE
> exception
>
> Copy all of the dlls and obfs from the OpenBabel GUI installation into the 
> same folder as your example.exe, and see what happens. It sounds like you 
> have different versions of libinchi.dll on your PATH.
>
> - Noel
>
> On 4 October 2011 16:25, Brüngger Adrian <adrian.brueng...@basilea.com> wrote:
>> 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.SWIGRegisterEx
>>> c
>>> e
>>> 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
>>
>
>
>
> 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.
>



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

Reply via email to