Results 1 to 3 of 3

Thread: Extremely Urgent- Serious Karma for any guru who can help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Exclamation

    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.

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    What's the exact runtime error? You might be using a variable to keep track of something which might be overflowing!

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width