Home All Groups Group Topic Archive Search About

Binary writer spurious IOException issue

Author
21 Jun 2006 8:19 PM
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

Author
21 Jun 2006 8:55 PM
Mike
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

Mike wrote:
Show quote
> 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

AddThis Social Bookmark Button