This project is read-only.

Windows won't shutdown until HostProfiles is closed


Every time I shutdown or restart Windows, it will hang and wait for me to close HostProfiles.
The message says:
"1 program still needs to close:
This program is preventing Windows from shutting down."
The program probably lies in your canceling the close event:


jeronevw wrote Feb 23, 2012 at 3:34 PM

I fixed it myself; replace the 'FormMain_FormClosing' event with this:
    private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
        if (e.CloseReason == CloseReason.UserClosing)
            e.Cancel = !goodbye;

wrote Feb 14, 2013 at 3:46 AM

wrote Mar 2, 2013 at 1:59 AM

warptera1 wrote Mar 2, 2013 at 2:42 AM


It would be great if this were integrated into the next release.

jerone wrote Aug 12, 2013 at 10:50 AM

As this program hasn't been development on for almost 2 years (Sep 17, 2011), I've build a new version with the source code. You can download it from here:
It includes a fix for this feature.