Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Framework WinForms 环境下,显示 Form 托管的 Xaml islands 模态窗口导致应用崩溃 #26

Open
Gaoyifei1011 opened this issue May 15, 2024 · 0 comments

Comments

@Gaoyifei1011
Copy link
Contributor

Gaoyifei1011 commented May 15, 2024

.NET Framework WinForms 环境下,显示 Form 托管的 Xaml islands 模态窗口导致应用崩溃,显示 Native dll 异常

测试代码(修改 Mile.Xaml.Samples 的 MainPage.xaml.cs 文件,然后测试运行)

public sealed partial class MainPage : Page
{
    public MainPage() => this.InitializeComponent();

    private void Button_Click(object sender, RoutedEventArgs _)
    {
        Form1 form1 = new Form1();
        form1.ShowDialog();
    }
}

点击按钮,应用处于未响应状态,过一段时间后退出

“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: DefaultDomain): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll”。已加载符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: DefaultDomain): 已加载“D:\Github\Mile.Xaml.Samples\Output\Binaries\Debug\AnyCPU\net48\MileXamlBlankAppNetFramework.exe”。已加载符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\system32\WinMetadata\Windows.UI.Xaml.winmd”。模块已生成,不包含符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll”。模块已生成,不包含符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices.WindowsRuntime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.WindowsRuntime.dll”。模块已生成,不包含符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll”。已加载符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“D:\Github\Mile.Xaml.Samples\Output\Binaries\Debug\AnyCPU\net48\Mile.Xaml.Managed.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.WindowsRuntime\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.WindowsRuntime.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd”。模块已生成,不包含符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\system32\WinMetadata\Windows.UI.winmd”。模块已生成,不包含符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics.Vectors\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Numerics.Vectors.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.WindowsRuntime.UI.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.WindowsRuntime.UI.Xaml.dll”。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\system32\WinMetadata\Windows.System.winmd”。模块已生成,不包含符号。
“MileXamlBlankAppNetFramework.exe”(CLR v4.0.30319: MileXamlBlankAppNetFramework.exe): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_zh-Hans_b77a5c561934e089\mscorlib.resources.dll”。模块已生成,不包含符号。
程序“[24256] MileXamlBlankAppNetFramework.exe”已退出,返回值为 3221226107 (0xc000027b)。

5163df160f88bec6f7830b5ac831b849
44e352d2ac18e30d816f348bb52b22ac
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant