|
-
Apr 17th, 2001, 06:47 AM
#1
Thread Starter
Hyperactive Member
I am using the additional component Microsoft sysinfo control 6.0 to track when a computer goes in and out of suspend mode. My program runs on a .5 sec timer that I disable during suspend and enable during awaken. Despite this, I still end up with a runtime error as soon as the computer emerges from a suspend in excess of 5 hours. It freezes the entire system. This test was performed on a 95 labtop with 233 mhz processor. If you know any reason this occurs please inform me. Even more importantly, does anyone know how to unsuspend with api? I know the constant PB_APMQUERYSTANDBYFAILED can be used to come out of suspend, but I do not know how to use it.
Thank you for any help and especially for a prompt reply.
Pulling out his hair,
Joe
Last edited by Joey_k29; Apr 17th, 2001 at 07:22 AM.
-
Apr 17th, 2001, 08:05 AM
#2
PowerPoster
What's the exact runtime error? You might be using a variable to keep track of something which might be overflowing!
-
Apr 17th, 2001, 06:39 PM
#3
Monday Morning Lunatic
Why not subclass your form? Windows sends a message to all top-level windows before it goes into suspend mode, allowing a window to veto this if necessary (like a CD-writer program).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|