admin管理员组文章数量:1399910
i am trying to launch an avalonia application with an winui window inside. Most of the time it works but sometimes it has exited with code 3221226356 (0xc0000374). I don't know why ?
internal sealed class Program { // Initialization code. Don't use any Avalonia, third-party APIs or any // SynchronizationContext-reliant code before AppMain is called: things aren't initialized // yet and stuff might break. [STAThread] public static void Main(string[] args) => BuildAvaloniaApp() .StartWithClassicDesktopLifetime(args); // Avalonia configuration, don't remove; also used by visual designer. public static AppBuilder BuildAvaloniaApp() { var app = AppBuilder.Configure() .UsePlatformDetect() .WithInterFont() .LogToTrace() .UseReactiveUI(); app.AfterSetup(builder => { Microsoft.UI.Dispatching.DispatcherQueueController.CreateOnCurrentThread(); Microsoft.UI.Xaml.Hosting.WindowsXamlManager.InitializeForCurrentThread(); var WinUIWindow = new MauiWinUIWindow(); Microsoft.Maui.ApplicationModel.Platform.OnPlatformWindowInitialized(WinUIWindow); }); return app; } }
本文标签: cAvalonia application with winui causes 0xc0000374 is a heap corruption errorStack Overflow
版权声明:本文标题:c# - Avalonia application with winui causes 0xc0000374 is a heap corruption error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744242012a2596834.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论