You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start up application that is using GitHubUpdateManager
Leave the application running for 5 minutes (to ensure app has finished update process)
Select manual user action that calls to UpdateManager.RestartApp();
Expected behavior
The application should restart without causing an exception
Actual behavior
The application does restart but an exception is logged in event log:
"Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Threading.AbandonedMutexException
at Squirrel.SingleGlobalInstance.Finalize()"
This occurs as old version is shutting down.
Additional information
I have a c# winform application with the following code in program.cs:
` static async Task Main()
//static void Main()
{
AppLogging.WriteLog("Checking for updates...");
Squirrel version(s)
2.0.1
Description
RestartApp causing AbandonedMutexException
Steps to recreate
Expected behavior
The application should restart without causing an exception
Actual behavior
The application does restart but an exception is logged in event log:
"Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Threading.AbandonedMutexException
at Squirrel.SingleGlobalInstance.Finalize()"
This occurs as old version is shutting down.
Additional information
I have a c# winform application with the following code in program.cs:
` static async Task Main()
//static void Main()
{
AppLogging.WriteLog("Checking for updates...");
There is action that user can invoke:
private void Restart_Click(object sender, EventArgs e) { UpdateManager.RestartApp(); }
Additionally, no message was logged in catch statement above, so it is not occurring during the update phase.
The text was updated successfully, but these errors were encountered: