PInvokeStackImbalance exception on native calls in 32-bit app
See original GitHub issueIn in a windows .net forms app on calling
var allDevices = InputDevice.GetAll()
I get this exception?
Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'Melanchall.DryWetMidi!Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi32::OpenSession_Win' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
c# - PInvokeStackImbalance exception when using IntPtr in ...
The error i'm receiving when debugging is: PInvokeStackImbalance: A call to PInvoke function 'DLLTest!DLLTest.Form1::XC_GetFrame' has unbalanced ...
Read more >pInvokeStackImbalance MDA - .NET Framework
The PInvokeStackImbalance MDA is implemented only for 32-bit x86 platforms. ... the signature and calling convention of the native target.
Read more >Untitled
Pinvokestackimbalance WebPosted: Visual Studio Debugger, PInvokeStackImbalance was detected Top You do not want to turn off managed debug assistants (MDAs).
Read more >Unable to load wkhtmltopdf dll · Issue #8
If I try to load the 32 bit version I get this exception: Managed ... 'PInvokeStackImbalance' : 'A call to PInvoke function 'DinkToPdf!...
Read more >Managed Debugging Assistant 'PInvokeStackImbalance' ...
A call to PInvoke function 'xxx' has unbalanced the stack. ... If I run app as 32 or 64 bit or without Prefer...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The problem is solved now. You can install prerelease version of the library NuGet package – 6.1.0-prerelease1.
🚀 6.1.0 version is released now!
Prerelease NuGet packages will be unlisted soon, so please update the package references to the new version.
Thanks for using the library!