Dotnet 4 taskdialog error

Topics: Developer Forum, Project Management Forum
Apr 18, 2015 at 5:26 PM
Edited Apr 21, 2015 at 9:21 AM
Hello!
I use this project to c# 2010.
My project properties set Dotnet 3.5 and show taskdialog no problem if
set project properties Dotnet 4 and show taskdialog no problem and close taskdialog
show compiler warning:
A call to PInvoke function 'WindowsFormsAero!WindowsFormsAero.Dwm.NativeMethods::DwmExtendFrameIntoClientArea' 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.
Why show this exception?
Thanks Gabee.