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: running Long calculations

23 Apr 2010   #1

Windows 7
 
 
running Long calculations

Just upgraded to Windows 7. This problem arises, which I didn't have in XP: I run a program (one that I've developed) that does a huge number of numerical calculations. To reach its conclusion and give the answer takes hours and hours. Best to start it before bedtime, hoping to have the answer in the morning. But Windows 7 goes into some kind of quasi-shut down mode; in the morning I see only the Intro screen where I choose the User, etc. Clicking it returns the desktop, and the program I had running all night is there, but it is frozen, with a blank screen. At the top it says something like "Program not responding." Can't find any way to revive it and show me the answer (or continue calculating, if it's not finished). I have to go to task manager and end it, losing all that overnight work. What can I do to fix that?

thanx,
Ben Crain

My System SpecsSystem Spec
23 Apr 2010   #2

Windows 8 Core X64
 
 

Fill out your System Specs so we know what kind of computer you have.

Try this:
Open Control Panel, click on Power Options.
Click on Change plan settings for which ever plan you are using.
Set Put computer to sleep to Never then click on Save Changes.

See if that helps.
My System SpecsSystem Spec
23 Apr 2010   #3

 

All things power...

.


Attached Thumbnails
running Long calculations-capture.png  
My System SpecsSystem Spec
.


23 Apr 2010   #4

XP Pro SP3 X86 / Win7 Pro X86
 
 

Quote   Quote: Originally Posted by bcrain View Post
Just upgraded to Windows 7. This problem arises, which I didn't have in XP: I run a program (one that I've developed) that does a huge number of numerical calculations. To reach its conclusion and give the answer takes hours and hours. Best to start it before bedtime, hoping to have the answer in the morning. But Windows 7 goes into some kind of quasi-shut down mode; in the morning I see only the Intro screen where I choose the User, etc. Clicking it returns the desktop, and the program I had running all night is there, but it is frozen, with a blank screen. At the top it says something like "Program not responding." Can't find any way to revive it and show me the answer (or continue calculating, if it's not finished). I have to go to task manager and end it, losing all that overnight work. What can I do to fix that?

thanx,
Ben Crain
Sounds like Windows 7 decided your program was locked up and then went into standby...

Since this is your own code... you need to capture the WM_POWERBROADCAST message and respond with the DENY value to prevent system standby while your calculations are running.

Also, if you are using tight loops to do your calculations, you should imbed Sleep(0) calls in the parts of the loops that are not being timed by interprocess or interthread signals. The goal is to periodically release a time slice so the system doesn't see your program as being unresponsive.



The system natively uses only keyboard, mouse and network activity to reset the standby counters... applications that must prevent standby need to do it by the message method...
My System SpecsSystem Spec
Reply

 running Long calculations





Thread Tools




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 10:56 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33