Click here to Skip to main content
15,890,947 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.

 
JokeRe: Thought of the Day Pin
englebart17-Sep-21 7:04
professionalenglebart17-Sep-21 7:04 
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 
Yes, I encountered it numerous times on numerous different machines, despite them all having a UPS to ensure a clean shutdown on power failure.
I created a ConfigurationUncorrupter class. It detects when an app startup is complete and configuration has been successfully loaded then it creates a safe copy of the config file. If, on the other hand, loading configuration fails, it replaces the config file with the backup from the last successful start and tries again.
Every app gets that class incuded. That has pretty much eliminated the problem for me.
Phil



The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

GeneralRe: Mysterious null value bug Pin
dandy7217-Sep-21 3:46
dandy7217-Sep-21 3:46 
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 

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.