Hello,
I'm building a software to interface with an .exe that will parse a
text file (a lex program build in cygwin that works great when it's
executed on it's own).
The OutputXML is more than 150 000 characters and the software always
bugs at the 20479 character, it just seems to hang and nothing happens.
If I try with 20 000 characters it works great.
Is there any size limitation ? If so is there anyway to get passed this
limitation ?
Thank you,
PS : Here is my code :
StreamWriter swx;
StreamReader srx;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "xmltest.exe";
p.Start();
swx = p.StandardInput;
srx = p.StandardOutput;
swx.AutoFlush = true;
char[] OutputChar = OutputXML.ToCharArray();
for (int i = 0; i < OutputChar.Length; i++)
{
swx.Write(OutputChar[i]);
swx.Flush();
}
swx.WriteLine("");
swx.WriteLine("EOF");