I found the source of the disposal. Trying to determine the number of columns in the tab separated file by using this statement:
Using newStreamReader As StreamReader = New StreamReader(fStream)
getColumnCount = Split(newStreamReader.ReadLine(), cDelim).Length
End...
I can't understand why I'm getting this error. I'm trying to parse a tab seperated file. After 10 lines being read it throws the above error which is an ObjectDisposedException.
Public Function readNextLine(ByRef buffer As Single()) As Boolean
Dim i As Integer
Dim tempString As...
That sounds like the issue to me. The StreamWriter opens the stream and writes to file and closes. Whereas the log reader has the StreamReader open for as long as it takes to import the data and then closes it. So imagine the StreamWriter tries to open while the StreamReader is already open...
I'm having some problems with file access to a log file that my program is writing to. I have it all set up fine and it logs the data being pulled off the network to a file. But when I copy and paste that log file with windows explorer (XP) or I open the file with a log viewer program that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.