Binary writer spurious IOException issue

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Greetings,

I have done some reading on the groups and understand that maybe there
are intermitent issues reading from and writing to files from the .NET
framework? In particular, receiving spurious IOExceptions. In our case,
we receive them utilizing "BinaryWriter(new FileStream())". Can anyone
confirm whether this is true? And if so, what might we do to circumvent
it? Of greater concern, if I do receive an exception, should we be
concerned about it and do anything in response? Such as, for example,
re-write the file in question? Please advise. Thanks much.

Regards,
Michael
 
Follow up,

Problem solved (I think)... It seems we were writing out to file in
rapid succession. If I understand the documentation regarding the
readers, writers and streams, it is likely that some static data could
have still been in use. I removed the redundant write and it seems to
be working now. Any additional insights are absolutely still welcome.
Thanks in advance.

Regards,
Michael
 
Back
Top