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:
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.
Continue reading “How to solve error A call to PInvoke function MyMethod has unbalanced the stack.”
Today when I started the emulator I got the error message:
Error generating final archive: Debug Certificate expired on 04/16/12
Continue reading “How to solve the error Debug Certificate expired”
In the post Developing with cocos2d-x for android on Linux I told you how to compile your cocos2d-x and run it on Eclipse.
Now I’m going to tell you how to debug both cocos2d-x native code and Java using MOTODEV Studio for Android (You can use the instructions provided here with plain Eclipse with some extra effort).
Despite the fact I’m writing with cocos2d-x in mind, what I’m going to present here will let you debug any kind of native code mixed with Android / java.
Continue reading “How to debug cocos2d-x and Java code using Eclipse”