René's URL Explorer Experiment


Title: GitHub · Where software is built

Open Graph Title: pythonnet/pythonnet

X Title: pythonnet/pythonnet

Description: Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers. - pythonnet/pythonnet

Open Graph Description: Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET develo...

X Description: Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET develo...

Opengraph URL: https://github.com/pythonnet/pythonnet

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Calling overridden method with out parameter from C# to python results in 0xC0000005 (Access Violation)","articleBody":"### Environment\r\n\r\n-   Pythonnet version: 2.5.2\r\n-   Python version: 3.8.3\r\n-   Operating System: Win10 64bit\r\n-   .NET Runtime: 4.8\r\n\r\n### Details\r\n\r\n-   Describe what you were trying to get done.\r\n\r\nIn C# I have defined an interface with a method with an out parameter. I implemented this interface in python, an now I want to call this method from C#. (using pythonnet)\r\n\r\nWhat I see is that a method without out parameter works fine, but a method with an out parameter throws an access violation.\r\n\r\nI know that out parameters are handled differently in pythonnet: you return a tuple with first the return value and the second tuple item is the out parameter.\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\nMy C# code\r\n```C#\r\npublic interface IMyInterface\r\n{\r\n    string MyMethod_Out(string name, out int index);\r\n    string MyMethod(string name);\r\n}\r\n\r\npublic class MyServer\r\n{\r\n    public void CallMyMethod_Out(IMyInterface myInterface)\r\n    {\r\n        Console.WriteLine(\"C#.CallMyMethod_Out: before MyMethod_Out\");\r\n        int index = 1;\r\n        myInterface.MyMethod_Out(\"myclient\", out index);\r\n        Console.WriteLine($\"C#:CallMyMethod_Out: after MyMethod_Out: index:{index}\");\r\n    }\r\n    \r\n    public void CallMyMethod(IMyInterface myInterface)\r\n    {\r\n        Console.WriteLine(\"C#.CallMyMethod: before MyMethod\");\r\n        myInterface.MyMethod(\"myclient\");\r\n        Console.WriteLine($\"C#:CallMyMethod: after MyMethod\");\r\n    }\r\n\r\n    public void DoSomething()\r\n    {\r\n        Console.WriteLine(\"C#.DoSomething\");\r\n    }\r\n}\r\n```\r\n\r\nMy Python code:\r\n```python\r\nimport clr\r\nimport sys\r\n\r\nsys.path.append('some_dir')\r\nclr.AddReference(\"ClassLibrary1\")\r\n\r\nfrom ClassLibrary1 import IMyInterface, MyServer\r\n\r\nclass MyInterfaceImpl(IMyInterface):\r\n    __namespace__ = \"ClassLibrary1\"\r\n\r\n    def MyMethod_Out(self, name, index):\r\n        print(\"Python.MyInterfaceImpl.MyMethod_Out\")\r\n        other_index = 101\r\n        return ('MyName', other_index)\r\n\r\n    def MyMethod(self, name):\r\n        print(\"Python.MyInterfaceImpl.MyMethod\")\r\n        return 'MyName'\r\n\r\nprint('\\nCall regular C# function')\r\nmy_server = MyServer()\r\nmy_server.DoSomething()\r\n\r\nmy_interface_impl = MyInterfaceImpl()\r\n\r\nprint('\\nCall without out param')\r\nmy_server.CallMyMethod(my_interface_impl)\r\n\r\nprint('\\nCall with out param')\r\nmy_server.CallMyMethod_Out(my_interface_impl) # Access Violation 0xC0000005\r\n```\r\n\r\n-   If there was a crash, please include the traceback here.\r\n**Output:**\r\n\r\n\u003e Call regular C# function\r\n\u003e C#.DoSomething\r\n\u003e \r\n\u003e Call without out param\r\n\u003e C#.CallMyMethod: before MyMethod\r\n\u003e Python.MyInterfaceImpl.MyMethod\r\n\u003e C#:CallMyMethod: after MyMethod\r\n\u003e \r\n\u003e Call with out param\r\n\u003e C#.CallMyMethod_Out: before MyMethod_Out\r\n\u003e Process finished with exit code -1073741819 (0xC0000005)\r\n\r\n**Expected output**\r\n\u003e ...\r\n\u003e Call with out param\r\n\u003e C#.CallMyMethod_Out: before MyMethod_Out\r\n\u003e Python.MyInterfaceImpl.MyMethod_Out\r\n\u003e C#:CallMyMethod_Out: after MyMethod_Out: index:101\r\n","author":{"url":"https://github.com/roy-van-de-korput","@type":"Person","name":"roy-van-de-korput"},"datePublished":"2021-07-05T13:19:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1481/pythonnet/issues/1481"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:90a7276a-02e4-456c-87b8-e6db0eb2a7b4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC4B0:2835D5:26631AD:343CE12:6970938F
html-safe-nonce96becefc1a10b830fe9c62f1059db87aefd2dacab7aadab08a50b992853f4273
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEIwOjI4MzVENToyNjYzMUFEOjM0M0NFMTI6Njk3MDkzOEYiLCJ2aXNpdG9yX2lkIjoiODQwOTQ0Nzg4MzE2ODg0NjczNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8ec831dd481ac4d2ff3cc28aa288bbb60599475476ce697102ce4ec6ed897632
hovercard-subject-tagrepository:14748123
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pythonnet/pythonnet/issues/1481
twitter:imagehttps://opengraph.githubassets.com/9c3eaa649f87ce8666e7f3954ab4d50595a3f98894df566864d36deadfbf2778/pythonnet/pythonnet
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9c3eaa649f87ce8666e7f3954ab4d50595a3f98894df566864d36deadfbf2778/pythonnet/pythonnet
og:image:altPython for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET develo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-cache
go-importgithub.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git
octolytics-dimension-user_id6050430
octolytics-dimension-user_loginpythonnet
octolytics-dimension-repository_id14748123
octolytics-dimension-repository_nwopythonnet/pythonnet
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14748123
octolytics-dimension-repository_network_root_nwopythonnet/pythonnet
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d6181066430cc06553c8396ca201e194ae33cb9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pythonnet/pythonnet/issues/1481#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fissues%2F1481
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fissues%2F1481
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=pythonnet%2Fpythonnet
Reloadhttps://github.com/pythonnet/pythonnet/issues/1481
Reloadhttps://github.com/pythonnet/pythonnet/issues/1481
Reloadhttps://github.com/pythonnet/pythonnet/issues/1481
pythonnet https://github.com/pythonnet
pythonnethttps://github.com/pythonnet/pythonnet
Notifications https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Fork 770 https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Star 5.4k https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Code https://github.com/pythonnet/pythonnet
Issues 155 https://github.com/pythonnet/pythonnet/issues
Pull requests 18 https://github.com/pythonnet/pythonnet/pulls
Discussions https://github.com/pythonnet/pythonnet/discussions
Actions https://github.com/pythonnet/pythonnet/actions
Projects 0 https://github.com/pythonnet/pythonnet/projects
Wiki https://github.com/pythonnet/pythonnet/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/pythonnet/pythonnet/security
Please reload this pagehttps://github.com/pythonnet/pythonnet/issues/1481
Insights https://github.com/pythonnet/pythonnet/pulse
Code https://github.com/pythonnet/pythonnet
Issues https://github.com/pythonnet/pythonnet/issues
Pull requests https://github.com/pythonnet/pythonnet/pulls
Discussions https://github.com/pythonnet/pythonnet/discussions
Actions https://github.com/pythonnet/pythonnet/actions
Projects https://github.com/pythonnet/pythonnet/projects
Wiki https://github.com/pythonnet/pythonnet/wiki
Security https://github.com/pythonnet/pythonnet/security
Insights https://github.com/pythonnet/pythonnet/pulse
New issuehttps://github.com/login?return_to=https://github.com/pythonnet/pythonnet/issues/1481
New issuehttps://github.com/login?return_to=https://github.com/pythonnet/pythonnet/issues/1481
#1663https://github.com/pythonnet/pythonnet/pull/1663
Calling overridden method with out parameter from C# to python results in 0xC0000005 (Access Violation)https://github.com/pythonnet/pythonnet/issues/1481#top
#1663https://github.com/pythonnet/pythonnet/pull/1663
3.0.0https://github.com/pythonnet/pythonnet/milestone/6
https://github.com/roy-van-de-korput
https://github.com/roy-van-de-korput
roy-van-de-korputhttps://github.com/roy-van-de-korput
on Jul 5, 2021https://github.com/pythonnet/pythonnet/issues/1481#issue-937086466
Minimal, Complete, and Verifiable examplehttp://stackoverflow.com/help/mcve
3.0.0https://github.com/pythonnet/pythonnet/milestone/6
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.