Results 1 to 5 of 5

Thread: Crash related to Energy Saving Options

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Crash related to Energy Saving Options

    Alright, I have an app... A plain old window, created with my wrapped WindowClass.

    It runs just fine, no problems ever...

    Well, I opened it up and left it open, went and did some stuff, came back to the comp..my moniter had turned off due to the energy saving options I have it to turn off in 10 minutes. So I moved the mouse to restore the screen to see that my app had an error. The rest of windows didnt' redraw from this error, so I had to restart.

    To proove it was the energy saver turning off the moniter to cause the error. I set it to 1 minutes, opened my app...as soon as it turned off, I moved the mouse to restore the moniter and the error was there.


    This is a plain window with a few subclassed controls.

    The only GUI I use would be Begin/EndPaint on WM_PAINT for the window.

    Is there a msg I need to handle in WNDPROC to deal with MoniterSuspension??
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No, there isn't. There's one you CAN deal with, but none you MUST. (Just think of all the apps that would crash because programmers neglected it.)

    Very weird... is there any chance there is a message you accidently handle that you shouldn't?

    Start the app in debug mode and let it run until the screen turns off, perhaps the debugger catches something.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339
    It seems this is one of those "creeper bugs".

    Only now and then does it occur, and ironically I am now having a problem creating this crash. After a few restarts due to the problem, is sorta disappeared....

    All I ever have open is WindowExlorer, Msn, VC6, Mozilla, Winamp.
    So maybe one of those created a conflict.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  4. #4
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    281
    Originally posted by Halsafar
    It seems this is one of those "creeper bugs".

    ironically I am now having a problem creating this crash.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Multi-threaded app? It could be some sort of concurrency bug.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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