Skip to content

"System.Reflection.Emit.TypeBuilder" Error #1505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GentlerMan opened this issue Aug 5, 2021 · 1 comment
Closed

"System.Reflection.Emit.TypeBuilder" Error #1505

GentlerMan opened this issue Aug 5, 2021 · 1 comment

Comments

@GentlerMan
Copy link

Environment

  • Pythonnet version: 2.5.2
  • Python version: 3.8
  • Operating System: win10
  • .NET Runtime: 4.7.2

Details

I just test Delegates on Python.Net, But meet the Error "System.Reflection.Emit.TypeBuilder"

Code on Homepage:
`import clr,sys,time,datetime
clr.AddReference("System")
import System

def my_handler(source, args):
print('my_handler called!')

d = System.AssemblyLoadEventHandler(my_handler)
System.AppDomain.CurrentDomain.AssemblyLoad += d`

@filmor
Copy link
Member

filmor commented Aug 5, 2021

Please provide a Minimal, Complete, and Verifiable example and a stacktrace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants