Hi Bernd
Bernd Holzmüller wrote:
> Hi all,
>
> I am developing a test management GUI where processes are started and
> their output (on stdout and stderr) are shown on corresponding console
> windows. The process management worked quite OK with version 0.9.4 but
> does no longer work in version 0.10.3 (using ghc 6.8.3 on Windows XP).
>
> The attached small example application shows what happens: with
> processExecAsync only garbage is shown on both the stdout and the stderr
> console window, with processExecAsyncTimed the stdout console works
> fine, but the stderr console shows nothing. Main.hs is the wxHaskell GUI
> with two buttons, both calling the application compiled from
> Testproc.hs, one using processExecAsync, one using the Timed variant.
> The attached makefile builds everything.
>
> If someone with understanding of the internals of wxHaskell could have a
> look on this topic, I would be very grateful. Perhaps the (soon?) coming
> new wxHaskell version 0.11 will do correctly?
>
> Thanks,
> Bernd
>
Your processExecAsyncTimed example works on Linux. But of cause that do
not help you much. The processExecAsync example do not work on Linux
either.
A while ago I got tired of the hard-to-get-to-work nature of
processExecAsyncTimed and therefore wrote my own process executor. I
have attached my own process executor and an adapted version of your
code, which works for me (on Linux). You will have to adapt it a little
bit to work on windows (properly just changing "./testproc.exe" to
"testproc" should do).
I would love to hear if it works on your machine.
Greetings,
Mads Lindstrøm
|