Re: BinaryReader munges data

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Kevin Trojanowski" <troj@xxxxxxxxxxxxxx> wrote in message
news:93yie.41606$gc6.33252@xxxxxxxxxxxxx
> I'm about to rip out what little hair I have left; I have a class that
> uses a BinaryReader, and the data is getting munged. A subset of the code
> follows; I've removed the parts that aren't relevant.
>
> What's really strange is that it reads the file just fine until the 272nd
> call to the Read method of the class, at which point it begins munging the
> data.
>
> Any thoughts would be greatly appreciated; I've tried reading by byte, as
> well as reading blocks, and it makes no difference.

How is it munging it? And could you show us a short but complete program[1]
that exhibits your problem? The code below just doesn't show whats going to
happen.

1. http://www.yoda.arachsys.com/csharp/complete.html



.