From: Frank S. <der...@gm...> - 2012-05-26 11:39:53
|
Hello, everybody! I am writing a C# program, that uses gnuplot via piping. See a minimal example in the attachment. (You probably have to fit the gnuplot path to your installation or use an environment variable just like me.) This console program calls gnuplot und plots the function x+y. But after that, gnuplot is not closed correctly. If you close the wxt window, the command gpProc.WaitForExit(); still blocks, although bind Close "exit gnuplot" is set in gnuplot. But in fact, I don’t care about this. The critical point is: If you hit a key (e. g. try to close the window with q or Alt + F4), gnuplot seems to hang. I am using: – Windows XP 32bit – gnuplot 4.6.0 (latest released version; same problem with 4.4.4) – Windows Visual C# 2010 (other compilers are not an option and I didn’t try others yet) – .Net-Framework 4.0 (same problem with 3.5 and probably others) This problem does not occur under linux. I am not sure, whether it is caused by windows or by gnuplot. In any case gnuplot can be closed correctly by uncommenting gpcommands.WriteLine("exit"); Hope you can help or give an advice. Thanks! Greetings Frank |