S
Schorschi
Ok, can someone point out to me why the following code does not work?
In compiles, no errors, but MemoryStream never seems to receive any
data?
Dim theMemory As MemoryStream, _
theListener As TextWriterTraceListener
theMemory = New MemoryStream(4096)
theListener = New TextWriterTraceListener(theMemory)
Trace.AutoFlush = True
Trace.Listeners.Add(theListener)
Trace.WriteLine("Test Memory Stream!")
Dim theReader As StreamReader
Dim theText As String
theReader = New StreamReader(theMemory)
theText = theReader.ReadLine()
Thanks! In Advanced!
In compiles, no errors, but MemoryStream never seems to receive any
data?
Dim theMemory As MemoryStream, _
theListener As TextWriterTraceListener
theMemory = New MemoryStream(4096)
theListener = New TextWriterTraceListener(theMemory)
Trace.AutoFlush = True
Trace.Listeners.Add(theListener)
Trace.WriteLine("Test Memory Stream!")
Dim theReader As StreamReader
Dim theText As String
theReader = New StreamReader(theMemory)
theText = theReader.ReadLine()
Thanks! In Advanced!