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
bcrain

Windows 7
 
 
running Long calculations

Just upgraded to W7. 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 W7 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
Ztruker

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
Casca

 

All things power...

.


Attached Thumbnails
-capture.png  
My System SpecsSystem Spec
.


23 Apr 2010   #4
CommonTater

XP Pro SP3 X86 / Win7 Pro X86
 
 

Quote   Quote: Originally Posted by bcrain View Post
Just upgraded to W7. 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 W7 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 Win7 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





Similar help and support threads
Thread Forum
Clues point to Russia in long-running spying campaign
Source A Guy
Security News
How do I fix "long running script"?
My PC is suddenly taking forever to connect to the internet, and I keep getting the message that "a long running script is preventing your connecting to the internet". What does this mean and how do I fix it?
Browsers & Mail
BSOD on startup, unknown error, startup repair running too long
As the title suggests, my Acer Aspire has been running startup repair for over 20 hours following a BSOD yesterday. I'm not sure if it's worth the wait so maybe you all can shed some light. Yesterday I was stressfully trying to search for something (using Chrome) and the website I was on froze;...
BSOD Help and Support
Interesting Difference in Math Calculations in different programs
I noticed a difference in the results of a math problem I did in 4 separate programs, and they split 2 to 2 on the result. I multiplied the following 2 numbers in Windows Calculator, a Firefox add-on calculator, Libre Office Calc and MS Excel with interesting resuts : 82.19777664*33.20088775 ...
Software
Change File Size Calculations
It appears windows does not cnform to the standard method of calculating file size. e.g. the standard value of 1GB is 1000MB, however windows uses 1024MB. As such it is not in fact a "Gigabyte" But a "Gibibyte". This is extremley annoying, as for egxample, I have a 2TB hard Drive, which in the...
General Discussion
File Properties or running the program takes long time
Hi, A certain set of programs take over a minute to run. If I double click the executable it takes over a minute before the program launches. Equally attempting to access the file properties takes a similar amount of time. (the file happens to be audioconverter.exe (part of a set of...
General Discussion

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 04:46.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App