|
-
Nov 11th, 2004, 01:46 PM
#1
Thread Starter
PowerPoster
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
-
Nov 11th, 2004, 02:26 PM
#2
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.
-
Nov 11th, 2004, 02:43 PM
#3
Thread Starter
PowerPoster
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
-
Nov 11th, 2004, 09:17 PM
#4
Hyperactive Member
Originally posted by Halsafar
It seems this is one of those "creeper bugs".
ironically I am now having a problem creating this crash.
-
Nov 12th, 2004, 02:51 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|