Click here to Skip to main content
15,886,664 members
Home / Discussions / C#
   

C#

 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 9:19
harold aptroot4-Nov-09 9:19 
GeneralRe: XNA: Game updating slowly Pin
jdneul5-Nov-09 1:23
jdneul5-Nov-09 1:23 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot5-Nov-09 1:27
harold aptroot5-Nov-09 1:27 
QuestionPaper Setting Problem in Dot Matrix Printer using Crystal Report. Pin
sharad Pyakurel4-Nov-09 1:00
sharad Pyakurel4-Nov-09 1:00 
QuestionUsing StreamWriter twice Pin
Trollslayer4-Nov-09 0:56
mentorTrollslayer4-Nov-09 0:56 
AnswerRe: Using StreamWriter twice Pin
Covean4-Nov-09 1:15
Covean4-Nov-09 1:15 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 4:01
mentorTrollslayer4-Nov-09 4:01 
GeneralRe: Using StreamWriter twice Pin
Covean4-Nov-09 5:12
Covean4-Nov-09 5:12 
Take a look at your code!

<pre>FileStream fs = new FileStream(timestr, FileMode.CreateNew);
ScriptData.LogFile = new StreamWriter(fs);</pre>

Now if you close fs then your StreamWriter can be a static item from hell, its closed cause you closed the underlying filestream!

StreamWriter is just a class to have a simpler way to transfer data from and to a file.
The FileStream itself "represents" the file!

Greetings
Covean

AnswerRe: Using StreamWriter twice Pin
Pete O'Hanlon4-Nov-09 4:22
mvePete O'Hanlon4-Nov-09 4:22 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 5:40
mentorTrollslayer4-Nov-09 5:40 
GeneralRe: Using StreamWriter twice Pin
Pete O'Hanlon4-Nov-09 6:39
mvePete O'Hanlon4-Nov-09 6:39 
Questionsending receiving sms Pin
sahoo.fm4-Nov-09 0:33
sahoo.fm4-Nov-09 0:33 
AnswerRe: sending receiving sms Pin
King Julien4-Nov-09 0:46
King Julien4-Nov-09 0:46 
AnswerRe: sending receiving sms Pin
Giorgi Dalakishvili4-Nov-09 0:49
mentorGiorgi Dalakishvili4-Nov-09 0:49 
QuestionIs it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 0:15
dojohansen4-Nov-09 0:15 
AnswerRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
PIEBALDconsult4-Nov-09 9:33
mvePIEBALDconsult4-Nov-09 9:33 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 10:08
dojohansen4-Nov-09 10:08 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
Pete O'Hanlon4-Nov-09 10:21
mvePete O'Hanlon4-Nov-09 10:21 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
PIEBALDconsult4-Nov-09 10:45
mvePIEBALDconsult4-Nov-09 10:45 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 13:22
dojohansen4-Nov-09 13:22 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? [modified] Pin
PIEBALDconsult4-Nov-09 15:07
mvePIEBALDconsult4-Nov-09 15:07 
Questionhow to use towords() function in crystal reports...... Pin
PravinYog4-Nov-09 0:14
PravinYog4-Nov-09 0:14 
QuestionChanging the colour of scroll bar Pin
deeptishete4-Nov-09 0:10
deeptishete4-Nov-09 0:10 
AnswerRe: Changing the colour of scroll bar Pin
dojohansen4-Nov-09 0:57
dojohansen4-Nov-09 0:57 
QuestionHow do you bind with a textbox to a Nullable&lt;decimal&gt; datasource property? Pin
Last Attacker3-Nov-09 23:42
Last Attacker3-Nov-09 23:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.