Feb 9, 2010 at 11:04 AM
Edited Feb 9, 2010 at 9:06 PM
Is anybody else having trouble debugging a .NET 4 RC app with the Fluent ribbon?
Platform: Win7, DWM enabled, .NET 4 RC, VS.NET 2010 RC.
Steps to reproduce:
1) Download latest fluent source checkin.
2) Open SLN in VS 2010 RC.
3) Change both projects to compile against .NET 4 (compiles fine).
4) Press F5 to start debugging. Exception will occur shortly after FluentTest starts up.
RibbonWindow.cs - inside UpdateWindowStyle()
Exception thrown on NativeMethods.SetWindowLong(handle, NativeMethods.GWL_STYLE, style);
MDA message: PInvokeStackImbalance was detected
Message: A call to PInvoke function 'Fluent!Fluent.NativeMethods::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.
I somehow got it working (setting all build targets in my app to "Any CPU" - it was x86 before).
> By the way, nice job. Fluent ribbon is looking good. Probably the best free ribbon control currently available.
It looks fantastic compared to the RibbonControlsLibrary CTP. Even under XP is looks great!