- Notifications
You must be signed in to change notification settings - Fork749
Closed
Description
Environment
- Pythonnet version: 3.0.0dev
- Python version: 3.9
- Operating System: Windows
- .NET Runtime:
Details
- Describe what you were trying to get done.
In v2.5.2 I'm able to get a C# enum and get the int value. In alpha 2 it seems that the full enum class is returned but the int command is not working. In 3.0.0dev it makes crashing the Debugger.
What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.If there was a crash, please include the traceback here.
Out[13]:<boundmethod'int'>UnhandledException:System.Reflection.TargetInvocationException:Exceptionhasbeenthrownbythetargetofaninvocation.--->System.AccessViolationException:Attemptedtoreadorwriteprotectedmemory.Thisisoftenanindicationthatothermemoryiscorrupt.atPython.Runtime.Runtime.PyLong_FromLongLong(Int64value)atPython.Runtime.PyInt..ctor(Int64value)atPython.Runtime.EnumOps`1.int(Tvalue)---Endofinnerexceptionstacktrace---atSystem.RuntimeMethodHandle.InvokeMethod(Objecttarget,Object[]arguments,Signaturesig,Booleanconstructor)atSystem.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Objectobj,Object[]parameters,Object[]arguments)atSystem.Reflection.RuntimeMethodInfo.Invoke(Objectobj,BindingFlagsinvokeAttr,Binderbinder,Object[]parameters,CultureInfoculture)atPython.Runtime.MethodBinder.Invoke(BorrowedReferenceinst,BorrowedReferenceargs,BorrowedReferencekw,MethodBaseinfo,MethodBase[]methodinfo)atPython.Runtime.MethodObject.Invoke(BorrowedReferencetarget,BorrowedReferenceargs,BorrowedReferencekw,MethodBaseinfo)atPython.Runtime.MethodBinding.tp_call(BorrowedReferenceob,BorrowedReferenceargs,BorrowedReferencekw)Processfinishedwithexitcode-532462766
Metadata
Metadata
Assignees
Labels
No labels