Title: cannot get anymore int of enumclass (alpha2) · Issue #1810 · pythonnet/pythonnet · GitHub
Open Graph Title: cannot get anymore int of enumclass (alpha2) · Issue #1810 · pythonnet/pythonnet
X Title: cannot get anymore int of enumclass (alpha2) · Issue #1810 · pythonnet/pythonnet
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 th...
Open Graph 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 th...
X 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 ge...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1810
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cannot get anymore int of enumclass (alpha2)","articleBody":"### Environment\r\n\r\n- Pythonnet version: 3.0.0dev\r\n- Python version: 3.9\r\n- Operating System: Windows\r\n- .NET Runtime:\r\n\r\n### Details\r\n\r\n- Describe what you were trying to get done.\r\n\r\nIn 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.\r\n\r\n\r\n- What commands did you run to trigger this issue? If you can provide a\r\n [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve)\r\n this will help us understand the issue.\r\n\r\n\r\n\r\n- If there was a crash, please include the traceback here.\r\n\r\n```python\r\n Out[13]: \u003cbound method 'int'\u003e\r\n\r\nUnhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---\u003e System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.\r\nat Python.Runtime.Runtime.PyLong_FromLongLong(Int64 value)\r\nat Python.Runtime.PyInt..ctor(Int64 value)\r\nat Python.Runtime.EnumOps`1.int(T value)\r\n--- End of inner exception stack trace ---\r\nat System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\nat System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\nat System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\nat Python.Runtime.MethodBinder.Invoke(BorrowedReference inst, BorrowedReference args, BorrowedReference kw, MethodBase info, MethodBase[] methodinfo)\r\nat Python.Runtime.MethodObject.Invoke(BorrowedReference target, BorrowedReference args, BorrowedReference kw, MethodBase info)\r\nat Python.Runtime.MethodBinding.tp_call(BorrowedReference ob, BorrowedReference args, BorrowedReference kw)\r\n\r\nProcess finished with exit code -532462766\r\n```\r\n","author":{"url":"https://github.com/maxcapodi78","@type":"Person","name":"maxcapodi78"},"datePublished":"2022-06-08T14:00:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1810/pythonnet/issues/1810"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:affcfeb8-c35a-368c-49b0-ef07954b3f58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B698:2D93F8:20C5207:2C632E1:697083C6 |
| html-safe-nonce | bb36ef8d671f60d4a29b3755524a18be175be779c3d74eaa19889de3c6bab8a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjk4OjJEOTNGODoyMEM1MjA3OjJDNjMyRTE6Njk3MDgzQzYiLCJ2aXNpdG9yX2lkIjoiMjc0NTk3MTQxMjQzMjg4MDU4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9bd5687b51b64310dc0834d887b0af3b1feb3811d79a56deba81b9053f3ec694 |
| hovercard-subject-tag | issue:1264802074 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/1810/issue_layout |
| twitter:image | https://opengraph.githubassets.com/295a1188de2531334c25497f38ad384aa6f24358fffeea2870988c62772b46f7/pythonnet/pythonnet/issues/1810 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/295a1188de2531334c25497f38ad384aa6f24358fffeea2870988c62772b46f7/pythonnet/pythonnet/issues/1810 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxcapodi78 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width