Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27083

VS 2008 When saving file and the power lost file is lost too?

$
0
0
I know that is not good practice to 'pull the power' but this is what happens in pubs,

I have jukebox software that saves to a file, now if the file is saved and then the power is lost (say within 15 seconds or so) when I then open the file in notepad (after reboot) the file is full of blank chrs of the length that it should be.

I imagine that this has something to do with write caching, but i have turned it off for the drive that is in question.

Also if I quickly open the file in notepad before the hard power off I can see all of the data before the power loss.

Whats happening here? and how do I get around it?

Thanks,
Kris

Viewing all articles
Browse latest Browse all 27083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>