Debugging ADX Extensions

Add-in Express™ Support Service
That's what is more important than anything else

Debugging ADX Extensions
 
Todd Carlson




Posts: 29
Joined: 2006-05-07
Attempting to debug a VS2005 project with ADX Extensions is generating:

A call to PInvoke function 'AddinExpress.OL.2005!AddinExpress.OL.WindowsAPI::SetWindowLong' 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.

And hangs the debugger.

Todd
Posted 08 May, 2006 13:51:08 Top
Fedor Shihantsov


Guest


Hi Todd,

WindowsAPI is an internal class not for public usage.

if you want to use this function, please, use you own declaration

[DllImport("user32.dll", EntryPoint="SetWindowLong")]
public static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, WindowsProc dwNewLong);

Fedor
Posted 10 May, 2006 07:30:37 Top
Todd Carlson




Posts: 29
Joined: 2006-05-07
Fedor,
I am not attempting to use the function. The report from VS appears when I attempt to debug a project containing ADX Extensions. Removing the ADX Extensions the problem goes away.

Todd
Posted 10 May, 2006 08:43:35 Top
Fedor Shihantsov


Guest


I misunderstood you last time.

We've fixed this bug, in the next build you will be able to make sure of this.

Thanks a lot, Todd.
Posted 10 May, 2006 11:34:39 Top