From: Flo on
Hi everyone,

I try to configure a port com with non blocking input and blocking
output using:
set ID_file_com_opened [open com8 r+]
fconfigure $ID_file_com_opened -blocking [list 0
1]

I got an error :
expected boolean value got "0 1"

I'm using tcl 8.5.1.0 (activestate activetcl) on windows xp.

Does anyone got the correct syntaxe?
thanks a lot

Florent
From: Andreas Leitgeb on
Flo <margabiere(a)gmail.com> wrote:
> fconfigure $ID_file_com_opened -blocking [list 0 1]
> I got an error :
> expected boolean value got "0 1"

Doesn't that say it all?

fconfigure has a few options that can take pairs of
values for "in" and "out". However, "-blocking" is
*not* one of those. You can only make the whole
thing blocking or non-blocking.

From: Flo on
hi,
thanks a lot for the answer.
florent

Andreas Leitgeb a écrit :
> Flo <margabiere(a)gmail.com> wrote:
> > fconfigure $ID_file_com_opened -blocking [list 0 1]
> > I got an error :
> > expected boolean value got "0 1"
>
> Doesn't that say it all?
>
> fconfigure has a few options that can take pairs of
> values for "in" and "out". However, "-blocking" is
> *not* one of those. You can only make the whole
> thing blocking or non-blocking.