WindowsAppSDK
WindowsAppSDK copied to clipboard
Exception thrown at 0x21792849 (threadpoolwinrt.dll) 0xC0000005: Access violation reading location 0x00000000.
Describe the bug
Closing the app while it is running and deployed from Visual Studio gives this exception. Only happens in version Windows App SDK 1.1 and after.
Steps to reproduce the bug
- Create a packaged Windows App SDK app (1.1 and above).
- Run the app from Visual Studio.
- Just close the app (not from visual studio "stop debug" button ).
Expected behavior
No exception should be given.
Screenshots

NuGet package version
1.1.2
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 21H2 (19044, November 2021 Update)
IDE
Visual Studio 2022
Additional context
No response