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
>

------------------------------------------------------------------------------
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