Hi Dave,
Thanks for your concern!
Well, I started programming in a language called Simula in 1979 at the Royal Institute of Technology here in Stockholm. But that was long before modern programming and we were fortunate to have an interactive teaching computer, in 1977 they still used hole cards!
Anyway, these are obsolete knowledge in the world today and I try to keep up with the development despite the old knowledge!
Finally I believe that I have found the solution. It seems to be the write cache that empty the files and that causes the error message. The exception is thrown as the file is empty.
Rather brutal, but I changed the settings and disconnected the cache write function. Now I have taken in and out the cord for an hour or so and no failure occur. I'm a bit concerned about if this slows down the prestanda, so it could be an idea to partion the disk and put the files there and have the cache write unabled on that partion, but keep it for the C:!?
Thanks to everyone who read this, and perhaps someone can get help from this solution idea!
Cheers,
Per