Windows app instance is still running even after we close the application

Sunil A M 171 Reputation points
2023-10-13T05:33:50.6366667+00:00

Hi Team,

we have implemented single instancing of winui3 application using the below link,

https://gist.github.com/wbokkers/af326da5391bdb13b58529e720540178

after consuming above implementation in my winui3 application, When i try to close the application by clicking on the close Icon(X mark), Application is getting closed but Still instance of the application persist in the task manager.

Steps to reproduce:

  1. Launch the winui3 app
  2. Close the Winui3 app by clicking on close(X} button.
  3. APplication closed but instance of the app still persist in the task manager.
  4. so that when i try to open another instance of the application because we have implemented single instancing.

Could you please help me to resolve this issue.

Best Regards,

Sunil

Windows development | Windows App SDK
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.