Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to write the current status in some file when system shuts down with Electricity failure Pin
zahid_ash29-May-06 2:23
zahid_ash29-May-06 2:23 
AnswerRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Mahesh Kulkarni29-May-06 2:27
Mahesh Kulkarni29-May-06 2:27 
GeneralRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Eytukan29-May-06 2:32
Eytukan29-May-06 2:32 
GeneralRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Trollslayer29-May-06 3:42
mentorTrollslayer29-May-06 3:42 
GeneralRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Eytukan29-May-06 6:20
Eytukan29-May-06 6:20 
GeneralRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Trollslayer29-May-06 8:11
mentorTrollslayer29-May-06 8:11 
AnswerRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Sarath C29-May-06 2:38
Sarath C29-May-06 2:38 
GeneralRe: How to write the current status in some file when system shuts down with Electricity failure Pin
Sebastian Schneider29-May-06 4:23
Sebastian Schneider29-May-06 4:23 
We cannot. Because at the time that we are able to notice a power failure, it has already happened. And as soon as the hard-disk looses power, it shuts itself down.

Yes, theoretically, the failure is not "sudden", but happens over a (very short) time-span.

If you wanted to monitor for electrical failure, your computer could not do anything else, because he would have to check Vcore every 1000 cycles or so. And even that probably would not be fast enough to trigger a HDD-Write before the disk spins down.

This ONLY works with an UPS, which will notify Windows that "you are on battery now. save everything you can.". All UPSes allow some kind of status monitoring, but you might have to install propietary drivers for older or more sophisticated models.

What I was going to say originally:
"You should really try to claim damages toward your local power company for not notifying you (in written form) two days in advance of any unplanned power failure."

But I thought that was too harsh.

Cheers,
Sebastian

--
Contra vim mortem non est medicamen in hortem.
Questionadding Compressed HTML help with the application Pin
prashant.madhav29-May-06 1:46
prashant.madhav29-May-06 1:46 
AnswerRe: adding Compressed HTML help with the application Pin
Laxman Auti29-May-06 2:08
Laxman Auti29-May-06 2:08 
QuestionCall back function using child Thread Pin
Arun Tayal29-May-06 1:16
Arun Tayal29-May-06 1:16 
AnswerRe: Call back function using child Thread Pin
Sarath C29-May-06 1:30
Sarath C29-May-06 1:30 
GeneralRe: Call back function using child Thread Pin
Arun Tayal29-May-06 1:38
Arun Tayal29-May-06 1:38 
QuestionWhere i can find wrapper class Pin
Immunity1829-May-06 0:54
Immunity1829-May-06 0:54 
AnswerRe: Where i can find wrapper class Pin
toxcct29-May-06 0:55
toxcct29-May-06 0:55 
GeneralRe: Where i can find wrapper class [modified] Pin
Immunity1829-May-06 0:59
Immunity1829-May-06 0:59 
GeneralRe: Where i can find wrapper class Pin
ThatsAlok30-May-06 1:24
ThatsAlok30-May-06 1:24 
AnswerRe: Where i can find wrapper class Pin
Eytukan29-May-06 1:03
Eytukan29-May-06 1:03 
GeneralRe: Where i can find wrapper class Pin
Immunity1829-May-06 1:04
Immunity1829-May-06 1:04 
GeneralRe: Where i can find wrapper class Pin
Eytukan29-May-06 1:07
Eytukan29-May-06 1:07 
GeneralRe: Where i can find wrapper class Pin
Immunity1829-May-06 1:09
Immunity1829-May-06 1:09 
GeneralRe: Where i can find wrapper class Pin
Eytukan29-May-06 1:11
Eytukan29-May-06 1:11 
GeneralRe: Where i can find wrapper class Pin
toxcct29-May-06 1:43
toxcct29-May-06 1:43 
QuestionVideo Pin
Anilkumar K V29-May-06 0:25
Anilkumar K V29-May-06 0:25 
AnswerRe: Video Pin
Laxman Auti29-May-06 0:39
Laxman Auti29-May-06 0:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.