[IronPython] Unexpected error in 2.0B2

เสกสรรค์ sakesun at boonthavorn.com
Sat May 3 11:22:17 CEST 2008


 Hi,
  I'm going to post exactly the same issue.  I also have similar (but
not exact) problem with B1.
 But I cannot reproduce here. It looks like IP2 have done something
special with System.Reflection
  ----- Original Message -----
 From: "Curt Hagenlocher" curt at hagenlocher.org
 To: "Discussion of IronPython" users at lists.ironpython.com
 Sent: Sat 03/05/08  7:59 AM
 Subject: Re: [IronPython] Unexpected error in 2.0B2
 The following code works for me under B1, but throws an exception
under B2:   import clr
 import System
 name = System.Reflection.AssemblyName()
 name.Name = 'Test'
 assemblyBuilder =
System.AppDomain.CurrentDomain.DefineDynamicAssembly(name,
System.Reflection.Emit.AssemblyBuilderAccess.Run)
    The stack trace is, of course, entirely inside the CLR.  
Traceback (most recent call last):
   File "", line 1, in 
   File "mscorlib", line unknown, in DefineDynamicAssembly
   File "mscorlib", line unknown, in InternalDefineDynamicAssembly
   File "mscorlib", line unknown, in nCreateDynamicAssembly
   File "mscorlib", line unknown, in CheckGrantSetHelper
 SystemError: Object reference not set to an instance of an object.
-------------------------
Boonthavorn Ceramic Co.,Ltd. Information Technology Department
(Technic Section)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080503/d325a4fe/attachment.html>


More information about the Ironpython-users mailing list