StreamWriter Stops in the middle of writing a line

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
ok, so i have an application in which i have a class (Applog).<br/><br/><br/>in applog, i have a class-level variable:<br/><br/>StreamWriter SW = StreamWriter;<br/><br/>Void OpenLog() {<br/>  SW = new StreamWriter("C:Log.txt");<br/>}<br/><br/>Void WriteToLog(Text) {<br/>SW.WriteLine(Text);<br/>}<br/><br/><br/><br/><br/><br/>all works good for about the first 8 lines, then the streamwriter just stops mid write:<br/><br/>Attempting to Login...<br/>The Login Was Succe <br/><br/><br/>even though the application continues, the StreamWriter will no longer write any more lines.<br/><br/><br/>Any Help is appreciated. <hr class="sig Any and All code is provided only as a guide.
- learning visual basic

View the full article
 
Back
Top