This sounds like a bug. Can you provide

 

Regards,

Victor

 

From: Govil Nag
Sent: Wednesday, March 4, 2020 11:16 AM
To: A list for users and developers of Python.NET
Subject: [Python.NET] Re: DLL Processor compatibility

 

tried the 32-bit Setting but got the same error an i tried changing the python Version also to 32-bit. but got the below 

Error:

Managed Debugging Assistant "PInvokeStackImbalance": "A call to the PInvoke function" Python.Runtime! Python.Runtime.Runtime :: PyDict_GetItemString "has disturbed the balance of the batch. The managed PInvoke signature probably does not match the unmanaged target signature Verify that the calling convention and parameters of the PInvoke signature match the unmanaged target signature. "

 

On Wed, Mar 4, 2020 at 8:10 PM Govil Nag <govilnag303@gmail.com> wrote:

tried the 32-bit Setting but got the same error an i tried changing the python Version also to 32-bit. but got the below 

Error:Assistent für verwaltetes Debuggen "PInvokeStackImbalance" : "Ein Aufruf an die PInvoke-Funktion "Python.Runtime!Python.Runtime.Runtime::PyDict_GetItemString" hat das Gleichgewicht des Stapels gestört. Wahrscheinlich stimmt die verwaltete PInvoke-Signatur nicht mit der nicht verwalteten Zielsignatur überein. Überprüfen Sie, ob die Aufrufkonvention und die Parameter der PInvoke-Signatur mit der nicht verwalteten Zielsignatur übereinstimmen."

 

 

On Wed, Mar 4, 2020 at 7:02 PM Victor “LOST” Milovanov <lostfreeman@gmail.com> wrote:

AnyCPU assemblies can use x86 and x64 assemblies, as long as they run with corresponding architecture (check Prefer 32-bit setting if you are experiencing issue with x64 assembly).

 

You need a pythonnet dll matching your Python architecture.

 

Regards,

Victor

 

 

From: Govil Nag
Sent: Wednesday, March 4, 2020 1:51 AM
To: pythonnet@python.org
Subject: [Python.NET] DLL Processor compatibility

 

hallo,

 

pythonnet dll work either x64 bit processor or x86 processor ..is it possible to run it in visual Studio with "Any CPU" 

 

_______________________________________________
PythonNet mailing list -- pythonnet@python.org
To unsubscribe send an email to pythonnet-leave@python.org
https://mail.python.org/mailman3/lists/pythonnet.python.org/