-
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
-
What's the exact runtime error? You might be using a variable to keep track of something which might be overflowing!
-
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).