Exceptions on app exit
See original GitHub issueWinUI 3, .NET 6, Windows 10, I’m getting a bunch exceptions on app exit. Is there something I need to call to exit properly?
Exception thrown at 0x00007FFF1F7B4F69 (KernelBase.dll) in App.exe: WinRT originate error - 0x800710DD : 'The WinUI Desktop Window object has already been closed.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FFF1FCCC363: (caller: 00007FFF1FCD6049) ReturnHr(5) tid(1ad5c) 8007007E The specified module could not be found.
Exception thrown at 0x00007FFF1F7B4F69 (KernelBase.dll) in App.exe: WinRT originate error - 0x80000013 : 'The given object has already been closed / disposed and may no longer be used.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FFF1FCCC363: (caller: 00007FFF1FCD6049) ReturnHr(6) tid(1ad5c) 8007007E The specified module could not be found.
Exception thrown at 0x00007FFF1F7B4F69 (KernelBase.dll) in App.exe: WinRT originate error - 0x80000013 : 'The given object has already been closed / disposed and may no longer be used.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FFF1FCCC363: (caller: 00007FFF1FCD6049) ReturnHr(7) tid(1ad5c) 8007007E The specified module could not be found.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to fire exception prevent c# app from exit
My app exit while executing an function from ironocr library (ocr.read()) without throw any exceptions although i put the line of code in ......
Read more >c# - How to treat unhandled exceptions? (Terminate the ...
It depends to some extent on the application you're developing but in general, I'd say that if your application encounters an unhandled ......
Read more >crashes - How do one know what is the reasons why ...
Example: One can go to a particular folder of the apps and open the logs which tell the user that the apps exit...
Read more >App not exiting after exception?
Something really strange seems to happen in this little commandline app: when the exception is thrown, the app does not terminate when ...
Read more >Exception error when forcing an application exit
Originally I was getting an exception in the UnityPlayer.dll in some Memory Profiler call when I called App.Current.Exit() during the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sorry, I can’t reproduce it in my environment, so troubleshooting is difficult. You may want to review the Visual Studio Installer to see if you are missing the any SDKs or runtimes.
@Slion I’ve made it compatible with .NET 5 and pushed it to NuGet as version 5.0.5, so you can use it.