A
Anil Gupte
Here is my code:
Dim fsReadStream As New FileStream(L3FileName, FileMode.Open,
FileAccess.Read)
Dim brReader As New BinaryReader(fsReadStream)
Dim ByteArray() As Byte
While brReader.PeekChar() > -1
ByteArray = brReader.ReadBytes(1)
End While
It processes for a while and then causes an exception and the line it stops
at is the While .... I get the message:
An unhandled exception of type 'System.ArgumentException' occurred in
mscorlib.dll
Additional information: Conversion buffer overflow.
I think it was working before, but appears to have stopped. Any ideas why
this is happening?
Thanx,
Dim fsReadStream As New FileStream(L3FileName, FileMode.Open,
FileAccess.Read)
Dim brReader As New BinaryReader(fsReadStream)
Dim ByteArray() As Byte
While brReader.PeekChar() > -1
ByteArray = brReader.ReadBytes(1)
End While
It processes for a while and then causes an exception and the line it stops
at is the While .... I get the message:
An unhandled exception of type 'System.ArgumentException' occurred in
mscorlib.dll
Additional information: Conversion buffer overflow.
I think it was working before, but appears to have stopped. Any ideas why
this is happening?
Thanx,