1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

%@fileopen[ "\\.\pipe\xxx", w ]% hangs

Discussion in 'TCC/LE Support' started by LarryBrasfield, May 13, 2012.

  1. LarryBrasfield

    LarryBrasfield

    Joined:
    Mar 18, 2010
    Messages:
    11
    Likes Received:
    0
    (ver /r output: TCC LE 13.04.63 x64 Windows 7 [Version 6.1.7601])

    This batch file never terminates:
    set np=%@fileopen["\\.\pipe\xxx",write]%
    if %np%!=-1 set np=%@fileclose[%np%]%

    FWIW, I think I recall seeing named pipes working in some earlier version of TCC or TCC/LE.
     
    #1
  2. LarryBrasfield

    LarryBrasfield

    Joined:
    Mar 18, 2010
    Messages:
    11
    Likes Received:
    0
    This batch file never terminates:
    set np=%@fileopen["\\.\pipe\xxx",write]%
    if %np%!=-1 set np=%@fileclose[%np%]%

    Well, that's not quite true. If another process tries to open the same named pipe, the above open unblocks and returns a filehandle. Oddly, after that, the open runs without blocking whether or not any process holds a read handle for that pipe. It's as if only the original creation blocks, but somehow the pipe object hangs around even when nothing ostensibly references it.
     
    #2

Share This Page