[IronPython] can't convert 6 to System.UInt32

Edd Dumbill edd at usefulinc.com
Tue Aug 24 15:39:27 CEST 2004


I'm starting to port all the examples from "Mono: A Developer's
Notebook" to IronPython.  The attached example gives the following error
under Mono.  I'm guessing that what's missing is just a few lines from

Unhandled Exception: System.Exception: can't convert 6 to System.UInt32
in <0x000dc> IronPython.Objects.Ops:ConvertTo (object,System.Type)
in <0x000d3> IronPython.Objects.ReflectedProperty:DoSet (object,object)
in <0x00091> IronPython.Objects.ReflectedProperty:__set__
in <0x000ba> IronPython.Objects.Ops:SetDescriptor (object,object,object)
in <0x0006e> IronPython.Objects.ReflectedType:SetAttr
in <0x000e1> IronPython.Objects.Ops:SetAttr (object,string,object)
in <0x00010> IronPython.Objects.Ops:SetAttrStackHelper
in <0x000a8> __main__:SetUpGui$f0 ()
in <0x00061> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_object ()in <0x00011>
IronPython.Objects.Function0:Call ()
in <0x0004d> IronPython.Objects.Ops:Call (object)
in <0x0024f> __main__:init ()
in <0x002a0> IronPythonConsole.IronPython:DoFile (string[])
in <0x0005d> IronPythonConsole.IronPython:Main (string[])

Edd Dumbill, Editor-at-Large, O'Reilly Network
More from me on my weblog -- http://usefulinc.com/edd/blog
Mono book -- http://usefulinc.com/edd/books/mono-notebook
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.py
Type: application/x-python
Size: 714 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20040824/9ac81b08/attachment.bin>

More information about the Ironpython-users mailing list