|
From: Frank S. <der...@gm...> - 2012-05-29 14:57:29
|
Hi and sorry for my late answer. Am Sonntag, den 27.05.2012, 15:07 +0200 schrieb Hans-Bernhard Bröker: > No attachment --- might have been stripped by the mailing list processor. Yes! At least I didn’t forget it. This mail should have an attachment, but for sure here’s the source code: ========== using System.Diagnostics; using System.IO; class Program { static void Main(string[] args) { ProcessStartInfo processStartInfo = new ProcessStartInfo(@"gnuplot"); //new ProcessStartInfo(@"C:\Programme\gp460win32\binary\gnuplot.exe"); processStartInfo.UseShellExecute = false; processStartInfo.RedirectStandardInput = true; Process gpProc = new Process(); gpProc.StartInfo = processStartInfo; gpProc.Start(); StreamWriter gpcommands = gpProc.StandardInput; gpcommands.WriteLine("splot x+y"); gpcommands.WriteLine("bind Close \"exit gnuplot\""); //gpcommands.WriteLine("exit"); gpProc.WaitForExit(); } } ======== > > – Windows Visual C# 2010 (other compilers are not an option and I didn’t > > try others yet) Now I know that the Mono compiler has the same problem. > > – .Net-Framework 4.0 (same problem with 3.5 and probably others) > > > > This problem does not occur under linux. > > I do wonder: since you are considering other platforms than MS, why on > earth would you be programming in C#? The thing with linux is just a hint for you. I have to work under MS at work. And in this special case, I also do not have the choice to use another language than C#. |