ghost1372 / HandyControls

Contains some simple and commonly used WPF controls based on HandyControl
https://ghost1372.github.io/
MIT License
1.07k stars 102 forks source link

编译目标为x86,netframework4.8的情况下报错 #203

Closed asine closed 9 months ago

asine commented 1 year ago

托管调试助手 "PInvokeStackImbalance":“对 PInvoke 函数“HandyControl!HandyControl.Tools.Interop.InteropMethods::GetWindowPlacement”的调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配。”

之前改了正常后,现在系统升级到window11后又不正常了,现在恢复到3.8.8前的代码,win11测试正常。

asine commented 9 months ago

.net6.0也支持win7sp1,不使用net48了。