Click here to Skip to main content
15,891,136 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer19-Sep-21 0:19
professionalDaniel Pfeffer19-Sep-21 0:19 
GeneralRe: Thought of the Day Pin
Mike Hankey17-Sep-21 6:51
mveMike Hankey17-Sep-21 6:51 
GeneralRe: Thought of the Day Pin
  Forogar  17-Sep-21 7:02
professional  Forogar  17-Sep-21 7:02 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Sep-21 7:47
W Balboos, GHB17-Sep-21 7:47 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer19-Sep-21 0:14
professionalDaniel Pfeffer19-Sep-21 0:14 
GeneralMysterious null value bug Pin
RickZeeland17-Sep-21 1:46
mveRickZeeland17-Sep-21 1:46 
GeneralRe: Mysterious null value bug Pin
Phil J Pearson17-Sep-21 2:21
Phil J Pearson17-Sep-21 2:21 
GeneralRe: Mysterious null value bug Pin
dandy7217-Sep-21 3:46
dandy7217-Sep-21 3:46 
I like that idea a lot, as part of a belt-and-suspenders system.

But this begs the question, I'd be very curious to know what happens so frequently and in such a repeatable fashion that such a thing had to be written in response to this recurring situation.

I mean, a config file is typically something that should be read (in read-only mode) at startup and then closed and left alone. Then even if the system isn't shut down cleanly, that config file should be safe. The only time it should be at risk is when it's opened to write new data into it or edit existing data. What gets it corrupted so easily?

And I hope that when your Uncorrupter class knows it has to intervene and restore the config file from a backup, it logs everything it possibly can to try to narrow down any potential source. Because that's not a "normal" state of operation. I'd be very uncomfortable knowing this auto-restore code gets triggered on a regular basis without understanding why.
GeneralRe: Mysterious null value bug Pin
Phil J Pearson19-Sep-21 22:03
Phil J Pearson19-Sep-21 22:03 
GeneralRe: Mysterious null value bug Pin
dandy7220-Sep-21 8:16
dandy7220-Sep-21 8:16 
GeneralRe: Mysterious null value bug Pin
Phil J Pearson20-Sep-21 22:37
Phil J Pearson20-Sep-21 22:37 
GeneralRe: Mysterious null value bug Pin
Jörgen Andersson17-Sep-21 3:50
professionalJörgen Andersson17-Sep-21 3:50 
GeneralRe: Mysterious null value bug Pin
OriginalGriff17-Sep-21 3:56
mveOriginalGriff17-Sep-21 3:56 
GeneralRe: Mysterious null value bug Pin
PIEBALDconsult17-Sep-21 4:06
mvePIEBALDconsult17-Sep-21 4:06 
GeneralRe: Mysterious null value bug Pin
Mircea Neacsu17-Sep-21 5:39
Mircea Neacsu17-Sep-21 5:39 
GeneralRe: Mysterious null value bug Pin
DerekT-P17-Sep-21 7:45
professionalDerekT-P17-Sep-21 7:45 
GeneralRe: Mysterious null value bug Pin
RickZeeland17-Sep-21 8:46
mveRickZeeland17-Sep-21 8:46 
GeneralRe: Mysterious null value bug Pin
Phil J Pearson19-Sep-21 22:04
Phil J Pearson19-Sep-21 22:04 
GeneralRe: Mysterious null value bug Pin
Joe Woodbury17-Sep-21 10:20
professionalJoe Woodbury17-Sep-21 10:20 
GeneralSound of the Week Pin
Sander Rossel17-Sep-21 1:13
professionalSander Rossel17-Sep-21 1:13 
GeneralRe: Sound of the Week Pin
kmoorevs17-Sep-21 3:44
kmoorevs17-Sep-21 3:44 
GeneralRe: Sound of the Week Pin
peterkmx17-Sep-21 8:51
professionalpeterkmx17-Sep-21 8:51 
GeneralRe: Sound of the Week Pin
Sander Rossel19-Sep-21 23:11
professionalSander Rossel19-Sep-21 23:11 
GeneralRe: Sound of the Week Pin
David O'Neil17-Sep-21 8:03
professionalDavid O'Neil17-Sep-21 8:03 
GeneralRe: Sound of the Week Pin
peterkmx17-Sep-21 8:39
professionalpeterkmx17-Sep-21 8: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.