H
HW
Hi, I'm seeing an ObjectDisposedException inside the Watch variable
of my FileStream object, the code is here dead simple when i Close the
Filestream object it doesn't get set to Nothing although the BinaryReader
object does get set to Nothing, what's wrong?
Dim FS As System.IO.FileStream
Dim BR As System.IO.BinaryReader
FS = File.OpenRead("Image.udb")
BR = New BinaryReader(FS)
Data = BR.ReadBytes(Length)
-------
FS.Close() Inside FS watch variable see ObjectDisposedException and FS is
NOT nothing
BR.Close() BR set to Nothing after this
of my FileStream object, the code is here dead simple when i Close the
Filestream object it doesn't get set to Nothing although the BinaryReader
object does get set to Nothing, what's wrong?
Dim FS As System.IO.FileStream
Dim BR As System.IO.BinaryReader
FS = File.OpenRead("Image.udb")
BR = New BinaryReader(FS)
Data = BR.ReadBytes(Length)
-------
FS.Close() Inside FS watch variable see ObjectDisposedException and FS is
NOT nothing
BR.Close() BR set to Nothing after this