I have a C++ MFC application, which hangs when the application is updated via the Microsoft Store. After the update the application is not running.
How can I ensure the application keeps running after the update.
- Any ideas on how to simulate the update process, i.e. send windows messages to the app / other api calls etc.*
I assume the application got blocked in the main UI thread (which is odd, since the application was fine while not updating);
Steps to reproduces:
- Start the application on Windows 10
- Open “MS Store” and go to “Library”, click “Get Updates”
Results:
- The application is running while updates are downloading
- The application is terminated, and the application is not restarted.
- I get the following entry in the Windows EventLog:
Log:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Hang" />
<EventID Qualifiers="0">1002</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>101</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2024-05-20T20:18:03.1169635Z" />
<EventRecordID>6018</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>win10</Computer>
<Security />
</System>
- <EventData>
<Data>App.exe</Data>
<Data>1.0.0.1</Data>
<Data>289c</Data>
<Data>01daa70704524710</Data>
<Data>4294967295</Data>
<Data>C:Program FilesWindowsApps....</Data>
<Data>some guid</Data>
<Data>....</Data>
<Data>App.exe</Data>
<Data>Quiesce</Data>
<Binary>510075006900650073006300650000000000</Binary>
</EventData>
<