running Long calculations


  1. Posts : 2
    Windows 7
       #1

    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 Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    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 Computer


  3. Posts : 303
    Windows 7 Ultimate
       #3

    All things power...

    .
    Attached Thumbnails Attached Thumbnails running Long calculations-capture.png  
      My Computer


  4. Posts : 1,170
    XP Pro SP3 X86 / Win7 Pro X86
       #4

    bcrain said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 01:28.
Find Us