Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cannot get anymore int of enumclass (alpha2) #1810

Closed
@maxcapodi78

Description

@maxcapodi78

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

  • 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp