Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: After a power outage 1 program in startup folder did not start

12 Jan 2013   #1
mpooley

Windows 7 Ultimate x64
 
 
After a power outage 1 program in startup folder did not start

After a power outage the only program in the startup folder on my home server did not start but when i looked at task manager it's process was running?

to be clear in Task manager it was not showing as a running application but program.exe was showing in the processes tab. It was obviously not working properly though as a window to it should have opened.

The program is a Homemade central heating controller written by me and has been running fine on my Home server for over 2 years 24/7 and has recovered from many many power outages in that time.


This is the first time this has ever happened.

The outage was for a few seconds only and my main computer (not the server) which was also running at the time would not restart properly at all and I had to do a system restore to get it to work.

I am going on holiday soon leaving some friends in my house and it would be a major problem if this happened again while I was away.

I can't see that this outage could be different from any other. could it?
a reboot is a reboot surely?

I rebooted manually and all was well so god knows why this time it was different.

should I get a UPS do you think ? if so anyone got a suggestion for a good one.
My server only uses 28w and most of our power cuts are short lived.

any suggestions are appreciated

thanks

Mike


My System SpecsSystem Spec
.
12 Jan 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

sure, a UPS is a good idea... but picking one can be fun - see this link.

you could write a tool that watches for the other software's window and if it does not see it after some preset amount of time, it tries to restart that app --- if that fails, it restarts the computer.

assuming that the server has a connection to the internet, TeamViewer might let you remotely view/control/reboot it from a smartphone.
My System SpecsSystem Spec
12 Jan 2013   #3
mpooley

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
sure, a UPS is a good idea... but picking one can be fun - see this link.

you could write a tool that watches for the other software's window and if it does not see it after some preset amount of time, it tries to restart that app --- if that fails, it restarts the computer.

assuming that the server has a connection to the internet, TeamViewer might let you remotely view/control/reboot it from a smartphone.
Hey that's not a bad idea !
I could easily write an app to do that ! why didn't i think of that

ah just had a thought though, the checking app might not start either

I do use Teamviewer though so that's something to think about. I could log on to my server from the Caribbean

thanks

Mike
My System SpecsSystem Spec
.

12 Jan 2013   #4
UsernameIssues

W7 Pro SP1 64bit
 
 

If the second "watcher app" has no visible windows, it can do it's thing without hanging up on some GUI creation process. If you know how, you can have the "watcher app" run as a service.

I'm no programmer and I only know a little bit about a few programing languages. I do most of my stuff in a scripting language named AutoIt. And most of my stuff has no visible windows. See this post and its videos for more info. AutoIt (or other programming tools) can be used to send you an e-mail if things barf.

I have written stuff where the main program watches for and tries to start or re-start the "watcher app". And the "watcher app" watches for and tries to start or re-start the main program. Between the two of them - they both stay running.

I don't know what could have caused your app to not start all of the way - but as important as that app is, I would set the server's BOIS to have the computer turn on when power is restored and set it to power up the computer each day at a certain time - just in case. (assuming that the BIOS has such settings). And I would go as far as writing/running two watcher apps - each checking in a different way that the main app is running and each app keeping tabs on the other 2.

...but that is just me...
My System SpecsSystem Spec
13 Jan 2013   #5
mpooley

Windows 7 Ultimate x64
 
 

No that sounds very sensible to me.

I am just googling how to make a 'service' in .net to see how hard it is

thanks
My System SpecsSystem Spec
Reply

 After a power outage 1 program in startup folder did not start




Thread Tools




Similar help and support threads
Thread Forum
Windows will not start after power outage during update
Hey all Today I experienced a power outage while windows was installing an update. Now whenever I try to start up my computer it gets to the Windows logo, a BSOD flashes for a split second, and the system restarts. Booting in safe mode also gives the same problem. System restore cannot find...
General Discussion
BSOD following power outage
Hello, I have been trying to sort out my computer for about a week now. My husband turned on my computer a few hours prior to the arrival of Hurricane Sandy and forgot to shut it down. We lost power and it was not shut down properly. I get a BSOD when Windows loads and gets to the login...
BSOD Help and Support
power outage = not genuine
This has been going of for a while. Apart from being close to the most expensive electricity in the world, our area also has extremely unreliable power. 2 out of 3 times when the power goes out for 1 - 2 seconds the computers will reboot. When they come back up I get the black screen and the...
Windows Updates & Activation
startup problem after power outage
Any help would be appreciated! I'm out of ideas... Dell Inspiron 546 Windows 7 Professional 64 bit Had a power outage while computer was running. When I restart, it hangs at the “starting windows” screen. Startup repair usually hangs at “windows is loading files” but occasionally works, so...
BSOD Help and Support
No LAN Connection after power outage
I think the solution to my problem ended up being a short, but I do not know. This situation occurred on a Monday afternoon. Tuesday evening, the computer died. I removed the power cable and inserted it the next morning, attempted to turn it on and it did boot up. Wednesday night, installed an...
Network & Sharing
Power Outage During Win 7 Upgrade
Hi everyone, I was installing the Win 7 Home Premium 32 Bit upgrade today when the power went out during the expanding files stage of the installation. Turning the computer on now, it recognised the install was not complete, but threw up an error message saying the rollback could not be completed....
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 15:26.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App