Click here to Skip to main content
14,270,361 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralHard drive write latency problem Pin
Michael Breeden15-May-19 3:28
memberMichael Breeden15-May-19 3:28 
GeneralRe: Hard drive write latency problem Pin
  Forogar  15-May-19 3:44
professional  Forogar  15-May-19 3:44 
GeneralRe: Hard drive write latency problem Pin
Michael Breeden15-May-19 3:51
memberMichael Breeden15-May-19 3:51 
GeneralRe: Hard drive write latency problem Pin
OriginalGriff15-May-19 3:59
protectorOriginalGriff15-May-19 3:59 
GeneralRe: Hard drive write latency problem Pin
  Forogar  15-May-19 4:25
professional  Forogar  15-May-19 4:25 
GeneralRe: Hard drive write latency problem Pin
  Forogar  15-May-19 3:59
professional  Forogar  15-May-19 3:59 
GeneralRe: Hard drive write latency problem Pin
Mycroft Holmes15-May-19 12:50
memberMycroft Holmes15-May-19 12:50 
GeneralRe: Hard drive write latency problem Pin
#realJSOP15-May-19 7:11
mve#realJSOP15-May-19 7:11 
Forogar wrote:
I had the same issue and simply had my copying code loop (with a few milliseconds sleep) until the file was properly closed. Waiting an arbitrary time will be too flaky. Loop it!


I have a method in my static Globals class called FileIsOpen that does the same thing. It loops until the file is closed, or until a time limit is met (throws an exception).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: Hard drive write latency problem Pin
Randor 15-May-19 4:52
professional Randor 15-May-19 4:52 
GeneralRe: Hard drive write latency problem Pin
#realJSOP15-May-19 5:14
mve#realJSOP15-May-19 5:14 
GeneralRe: Hard drive write latency problem Pin
Fueled By Caffeine15-May-19 4:55
memberFueled By Caffeine15-May-19 4:55 
GeneralRe: Hard drive write latency problem Pin
  Forogar  15-May-19 5:40
professional  Forogar  15-May-19 5:40 
GeneralRe: Hard drive write latency problem Pin
#realJSOP15-May-19 7:13
mve#realJSOP15-May-19 7:13 
GeneralRe: Hard drive write latency problem Pin
Dr.Walt Fair, PE15-May-19 5:26
professionalDr.Walt Fair, PE15-May-19 5:26 
GeneralAnnoyed Pin
#realJSOP15-May-19 3:23
mve#realJSOP15-May-19 3:23 
GeneralRe: Annoyed Pin
PeejayAdams15-May-19 3:39
memberPeejayAdams15-May-19 3:39 
GeneralRe: Annoyed Pin
#realJSOP15-May-19 4:29
mve#realJSOP15-May-19 4:29 
GeneralRe: Annoyed Pin
PeejayAdams15-May-19 5:09
memberPeejayAdams15-May-19 5:09 
GeneralRe: Annoyed Pin
#realJSOP15-May-19 7:23
mve#realJSOP15-May-19 7:23 
GeneralRe: Annoyed Pin
PeejayAdams15-May-19 22:10
memberPeejayAdams15-May-19 22:10 
GeneralRe: Annoyed Pin
lw@zi 15-May-19 3:42
professional lw@zi 15-May-19 3:42 
GeneralRe: Annoyed Pin
#realJSOP15-May-19 4:30
mve#realJSOP15-May-19 4:30 
GeneralRe: Annoyed Pin
OriginalGriff15-May-19 3:57
protectorOriginalGriff15-May-19 3:57 
GeneralRe: Annoyed Pin
Richard Deeming15-May-19 7:04
mveRichard Deeming15-May-19 7:04 
GeneralRe: Annoyed Pin
#realJSOP15-May-19 7:23
mve#realJSOP15-May-19 7:23 

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.