Skip to content

When calling UpdateManager.RestartApp my app crashes #1015

Open
@LightCZ

Description

@LightCZ

When there is an update available and you call UpdateManager.RestartApp my app crashes to classical WIN dialog [app stopped working with close button]
I copied parts of the code and it crashes on Environment.Exit(0) line in update manager (line 202)

When you try exit with Application.Current.Shutdown() (WPF stuff) you it is totally correct end and everything works.

I dont even know how to start debugging whats wrong with

Environment.Exit(0)

and whats going on.

As a workaround i can try using RestartAppWhenExited (which btw duplicate partially code from RestartApp) and call the restart myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:old-versionIssues that target a very old version of the library, and should be retested if possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions