Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.IO.File.Delete() Pin
yogesh_kumar_agarwal30-Sep-07 21:05
yogesh_kumar_agarwal30-Sep-07 21:05 
QuestionTime values in datagrid Pin
yogesh_kumar_agarwal30-Sep-07 20:25
yogesh_kumar_agarwal30-Sep-07 20:25 
AnswerRe: Time values in datagrid Pin
Mandaar Kulkarni1-Oct-07 0:33
Mandaar Kulkarni1-Oct-07 0:33 
QuestionMSBuild command line Pin
Abhi Lahare30-Sep-07 20:23
Abhi Lahare30-Sep-07 20:23 
AnswerRe: MSBuild command line Pin
Mandaar Kulkarni30-Sep-07 21:11
Mandaar Kulkarni30-Sep-07 21:11 
GeneralRe: MSBuild command line Pin
Abhi Lahare1-Oct-07 0:07
Abhi Lahare1-Oct-07 0:07 
Questionproblem with System.OutOfMemoryException Pin
Super Lloyd30-Sep-07 20:21
Super Lloyd30-Sep-07 20:21 
AnswerRe: problem with System.OutOfMemoryException Pin
Martin#30-Sep-07 21:47
Martin#30-Sep-07 21:47 
Hello,

How are you instanziating the XMLWriter class?

)
If you are using an IO.Stream, you should "Flush()" the XmlWriter and of course "Dispose()" the Stream. (use a using Block for that):
using(MemoryStream ms = new MemoryStream())
{
        XmlTextWriter xtw = new XmlTextWriter(ms, System.Text.Encoding.UTF8);
        .
        .
        .
	xtw.WriteEndElement();
	xtw.Flush();
}


)
If you are using an path, you should "Close()" the XMLWriter.
XmlTextWriter xtw = new XmlTextWriter(yourPath, System.Text.Encoding.UTF8);
.
.
.
xtw.WriteEndElement();
xtw.Close();


Hope it helps!

All the best,

Martin

GeneralRe: problem with System.OutOfMemoryException Pin
Super Lloyd1-Oct-07 13:24
Super Lloyd1-Oct-07 13:24 
QuestionSQL Problem. Pin
Janu_M30-Sep-07 20:03
Janu_M30-Sep-07 20:03 
AnswerRe: SQL Problem. Pin
N a v a n e e t h30-Sep-07 20:29
N a v a n e e t h30-Sep-07 20:29 
GeneralRe: SQL Problem. Pin
Janu_M1-Oct-07 2:01
Janu_M1-Oct-07 2:01 
AnswerRe: SQL Problem. Pin
Andrei Ungureanu30-Sep-07 21:26
Andrei Ungureanu30-Sep-07 21:26 
GeneralRe: SQL Problem. Pin
Janu_M1-Oct-07 2:02
Janu_M1-Oct-07 2:02 
QuestionDelete/Remove any particular File from any particular Folder/Direcotory Pin
M Riaz Bashir30-Sep-07 19:55
M Riaz Bashir30-Sep-07 19:55 
AnswerRe: Delete/Remove any particular File from any particular Folder/Direcotory Pin
Tamimi - Code30-Sep-07 20:01
Tamimi - Code30-Sep-07 20:01 
GeneralRe: Delete/Remove any particular File from any particular Folder/Direcotory Pin
M Riaz Bashir30-Sep-07 20:23
M Riaz Bashir30-Sep-07 20:23 
QuestionAccessing controls form class file problem Pin
rakeshpckm30-Sep-07 19:42
rakeshpckm30-Sep-07 19:42 
AnswerRe: Accessing controls form class file problem Pin
N a v a n e e t h30-Sep-07 20:06
N a v a n e e t h30-Sep-07 20:06 
QuestionFinding functions with no reference Pin
N a v a n e e t h30-Sep-07 19:19
N a v a n e e t h30-Sep-07 19:19 
AnswerRe: Finding functions with no reference Pin
Christian Graus30-Sep-07 19:29
protectorChristian Graus30-Sep-07 19:29 
GeneralRe: Finding functions with no reference Pin
N a v a n e e t h30-Sep-07 19:44
N a v a n e e t h30-Sep-07 19:44 
QuestionExit application Pin
sonigirish30-Sep-07 19:07
sonigirish30-Sep-07 19:07 
AnswerRe: Exit application Pin
N a v a n e e t h30-Sep-07 19:21
N a v a n e e t h30-Sep-07 19:21 
GeneralRe: Exit application Pin
sonigirish30-Sep-07 20:00
sonigirish30-Sep-07 20:00 

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.