Hallo Martin,

Du schriebst am Tue, 30 Aug 2011 07:48:57 +0200:

> > Synchronize them via a semaphore or something similar?
...
> It is done as you describe. If either of the two pipereader are active,
> it will read all available data. While reading the other pipe is blocked
> by application.lock() calls.

Do you _keep_ the locks until the output has been written to the terminal
or queued for output? Or do you release them immediately after reception?

> I assume the timing is as follows:
> "
...
>         <<<<<<<<<<<<<<------ task switch
...
> "
> It is undefined if the stderr or stdout reader threads will be activated
> after the task switch.

Yes, that could explain why the stderr line appears at different places and
sometimes even gets placed correctly. It does not neccessarily explain why
the effect happens at all, IMHO.

> It turned out that I forgot to introduce a flag pro_errortoout in 
> tmseprocess.options which feeds the stdout pipe to stdout and stderror in 

Interesting :-(
This "explanation" tells me absolutely nothing - I cannot imagine by any
means what an additional option flag might effect towards correctly feeding
output from different sources to a single destination. And above that, your
further "explanation" sounds backwards to me...
The name seems to imply that stderr output wasn't displayed before - but it
_was_, it just came out misplaced at times. So I _do_ wonder what this flag
might really effect/affect?
To me, as a user, that flag only increases the size of your code "universe"
(the set of possible configurations) by a factor of two, making maintenance
more complex by a factor of 2^^((configuration space size)^^2).

(I'm just about building a "small" [micro-] controller program for some
appliance that the customer wanted to be very broadly applicable, even
covering two quite distinct use cases. Even though it's not yet finished,
they already lamented about how difficult it was testing it thouroughly
enough to find out what's still wrong or not compliant with their wishes...)

> Minoshi, does activating pro_errortoout help?

I'd like to know too...

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------

_______________________________________________
MSEide-MSEgui-talk mailing list
MSEide-MSEgui-talk@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk

Reply via email to