Why upon closing an invisible window gives an Error in WinUI3 project?
Hi,
I am creating a multi-window application in C++ using WinUI3. To make the application even running if no windows are visible, I am creating an invisible window.
During exiting the application, we need to close all the Windows to come out of the event loop. So, while closing the visible windows, I don't face an issue. But while closing the Invisible Window, I am facing an error which is caught by my Vectored Exception Handler.
This is the error that I am facing:
Exception thrown at 0x00007FFE661953AC (KernelBase.dll) in Application.exe: WinRT originate error - 0x80000013 : 'The given object has already been closed / disposed and may no longer be used.'.
This is the exception code if I print inside VectoredExceptionHandler--> Exception Code: 1074266625 The thread 'DManip Delegate Thread' (10600) has exited with code 0 (0x0).
There is also a post which is being posted few years back and it is still open -- https://github.com/microsoft/WindowsAppSDK/issues/1836