Hi Dan,

I filed a bug: 
https://sourceforge.net/tracker/?func=detail&aid=3053762&group_id=40728&atid=428740

I'll update up when it gets sorted out. If you find other examples of
similar problems, can you just add them to the bug report (you may
have to create an a/c on source forge to do this, I forget).

- Noel

On 25 August 2010 23:54, Dan Kimberling <[email protected]> wrote:
>  Thanks Noel,
>
> I am CCing this to the list.
>
> Dan
>
> On 8/25/2010 12:10 PM, Noel O'Boyle wrote:
>>
>> Can you cc the message to the list?
>>
>> I'll look into the problem when I get a chance, but there's something
>> funny going on.
>>
>> - Noel
>>
>> On 25 August 2010 15:56, Dan Kimberling<[email protected]>  wrote:
>>>
>>>  On 8/25/2010 2:22 AM, Noel O'Boyle wrote:
>>>>
>>>> On 25 August 2010 02:54, Dan Kimberling<[email protected]>    wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> This is the message  that got accidentally deleted.
>>>>>
>>>>> I just started using OpenBabel with Iron Python. I am new to each so
>>>>> i'm
>>>>> not sure if this a bug or user error.
>>>>>
>>>>> When I try to get an element name or symbol using:
>>>>>
>>>>> import clr
>>>>> clr.AddReference("OBDotNet.dll")
>>>>> import OpenBabel as ob
>>>>>
>>>>> etab = ob.OBElementTable()
>>>>> name = str(etab.GetName(8))
>>>>
>>>> Try just name = etab.GetName(8)
>>>>
>>>>> print(name)
>>>>>
>>>>> I get an error:
>>>>> Message: Attempted to read or write protected memory. This is often an
>>>>> indication that other memory is corrupt.
>>>>>
>>>>> When I try to get a numeric value such as mass, everything works fine.
>>>>>
>>>>> Dan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>>>>> Be part of this innovative community and reach millions of netbook
>>>>> users
>>>>> worldwide. Take advantage of special opportunities to increase revenue
>>>>> and
>>>>> speed time-to-market. Join now, and jumpstart your future.
>>>>> http://p.sf.net/sfu/intel-atom-d2d
>>>>> _______________________________________________
>>>>> OpenBabel-scripting mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/openbabel-scripting
>>>>>
>>> Thanks Noel but that's what I tried first and got the same result.
>>>
>>> I still get the message:
>>> "Message: Attempted to read or write protected memory. This is often an
>>> indication that other memory is corrupt."
>>>
>>> This only happens when I try to read a text attribute. Numeric data works
>>> as
>>> expected.
>>>
>>> Dan
>>>
>
>

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
OpenBabel-scripting mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-scripting

Reply via email to