PInvokeStackImbalance was detected

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
 I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a <font color="#ff0000 third party dll</font> which I am using. How can I fix this.
 Thanks,
tribal
A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx 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.  

View the full article
 
Back
Top