-
Archives
Categories
Tags
adobe ads air andengine android api apps app store bada blackberry books business cocos2d cocos2d-x debug distimo download error Even Or Odd facebook flash games google howto ide inneractive interview iphone libgdx linux mac money motodev motorola ndk playbook plugin report revenue ruby sdk twitmyplace webos windows wordpress
Tag Archives: .net
How to solve error A call to PInvoke function MyMethod has unbalanced the stack.
Today I upgraded a C# program from .NET 2.0 to .NET 4.0 and started debugging it. I got the error message when pInvoke called a C++ function in one of my DLLs:
|
1 2 3 4 5 |
A call to PInvoke function 'MyMethod' 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. |
