Hi,
I want to make sure that my trace.Writelines are properly written to my trace file and so I created a Threading.Timer like...
but the file dont contain all my trace information
Any ideas?
TIA
/Kejpa
I want to make sure that my trace.Writelines are properly written to my trace file and so I created a Threading.Timer like...
Code:
_trdStreamFlusher = New Threading.Timer(AddressOf StreamFlusher, _Stream, 10000, 10000)
-Snip-
Private Shared Sub StreamFlusher(ByVal file As Object)
Dim oStream As IO.FileStream = DirectCast(file, IO.FileStream)
Try
oStream.Flush()
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
End Sub
Any ideas?
TIA
/Kejpa