hi
I replace some part of my code with tcl::chan::memchan and figure out
that there is an error:
error during truncate on "rc0": invalid argument
while executing
"chan truncate $FR 0"
It seems that tcl::chan::memchan does NOT support truncate.
but now I have a problem because I want to replace the
entire memchan space with new data and the new data is !! shorter !!
(in the example the FR is the tcl::chan::memchan)
chan truncate $FR 0 → error!
chan seek $FW 0
chan seek $FR 0
chan copy $FW $FR
without "truncate" the FR has now extra lines at the end.
question:
1) can I add an EOF character at the end of FR ?
2) is there an other way to "truncate" the memchan ?
https://core.tcl-lang.org/tcllib/doc/tcllib-1-18/embedded/www/tcllib/files/modules/virtchannel_base/tcllib_memchan.html
mfg AO
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)