Skip to content

x86模式下编译运行报错 #13

Description

@Gaomengkai

报错信息如下:

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

\MyComputerManager\MainWindow.xaml.cs下114行

        public void ShowWindow()
        {
            Show();
        }

Show();处中断。只在AnyCPU和x86模式下引发异常,在x64下则无此问题。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions