This project is read-only.
2
Vote

Windows won't shutdown until HostProfiles is closed

description

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:
HostProfiles
This program is preventing Windows from shutting down."
 
The program probably lies in your canceling the close event:
http://stackoverflow.com/a/4375081/108448

comments

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;
            HideShow();
        }
    }

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

+1

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: https://github.com/jerone/HostProfiles
It includes a fix for this feature.