PInvokeStackImbalance (Stack Imbalance)

Plug-in and third party software discussion.
Post Reply
Posts: 1
Joined: Tue Jun 21, 2011 4:37 am

PInvokeStackImbalance (Stack Imbalance)

Post by mustafaburny » Tue Jun 21, 2011 4:49 am

I'm messing around with the Everything SDK and just got it to work with the sample C# solution provided. Even though it works perfectly with the sample solution, every time I create a new solution and attempt to simply recreate the sample manually, I get the following error when "Everything_Query()" is called:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'WindowsFormsApplication4!WindowsFormsApplication4.Form1::Everything_Query' 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.
I'm running Windows 7 64-bit on Visual Studio (with Administrator privileges).

I'm just a newbie at programming but any help would be appreciated.

Post Reply