-
Notifications
You must be signed in to change notification settings - Fork 708
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
The exception is thrown and the process doesn't exit on window close #7540
Comments
Experiencing the same exact issue, didn't realize it was a conflict between |
@gabbybilka @ranjeshj are there any updates on this issue? |
I'm facing the same issue. Please investigate and fix. This is a showstopper for my projects. |
This workaround helped: dotnet/maui#7317 (comment) |
@MartinRothschink Thanks for the link. I've found another workaround: implementing own
It helps, because the exception/hang I'm experiencing happens after the return from
But I believe my approach has its drawbacks, since after |
This fix seems to fix this issue, so we can close it. |
Describe the bug
If we have
Image
andWebView2
control withVisibility=Collapsed
at the same window, then, if we close the window, the window disappears, but the process doesn't exit. If the debugger is attached, then the exception is observed.Steps to reproduce the bug
Here is the Visual Studio solution:
App1.zip
Create simple WinUI 3 project:
Image
fromMainWindow.xaml
, then process exits and no exception is thrown.WebView2.Visibility=Visible
, then process exits and no exception is thrown.Expected behavior
Process must exit. No exceptions should be thrown.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.1.3
Windows app type
Device form factor
Desktop
Windows version
Windows 10 (21H2): Build 19044
Additional context
I observe this problem for both x86 and x64 platforms and for both Debug and Release configurations.
10.0.22621.1 Microsoft.Windows.SDK.BuildTools are used.
The text was updated successfully, but these errors were encountered: