question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceptions on app exit

See original GitHub issue

WinUI 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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Grabacr07commented, Feb 7, 2022

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.

1reaction
Grabacr07commented, Feb 7, 2022

@Slion I’ve made it compatible with .NET 5 and pushed it to NuGet as version 5.0.5, so you can use it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found