V20 In-process pipes problem

rps

Jul 6, 2008
378
4
#1
I am attempting to determine how many TCC instances are running. When I use in-process pipes with V20 the resulting count is incorrect. Using V19 all is OK.
The following is with a single V19 stand alone TCC; _tcccont using in-process count. Count is correct.
Code:
C:\JPSoft\TCMD19x64>ver
TCC  19.10.51 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\TCMD19x64>set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\TCMD19x64>set _tcccount
1
The following is with V19 & V20 stand alone TCC's. Count is incorrect in V20 only.
Code:
C:\JPSoft\TCMD20x64>ver
TCC  20.11.40 x64   Windows 10 [Version 6.3.14393]C:\JPSoft\TCMD20x64>set _tcccount
%@execstr[ (tasklist tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\TCMD20x64>ech %_tcccount
5
C:\JPSoft\TCMD20x64>tasklist tcc
 7024  tcc               V19.10 [7024]
11216* tcc               V20.11 [11216] - tasklist tcc
Not what I expected since there are only 2 TCC instances, one V19 & one v20.
Now without the in-process pipe. Note that I added the @dec to eliminate the temp TCC created by the pipe. Count is correct in both TCC versions.
Code:
C:\JPSoft\TCMD20x64>set _tcccount=%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]]
C:\JPSoft\TCMD20x64>ech %_tcccount
2
C:\JPSoft\TCMD20x64>tasklist tcc
 7024  tcc               V19.10 [7024]
11216* tcc               V20.11 [11216] - tasklist tcc
Now with 1 new V19 TCC tab in TCMD V19 and back to an in-process pipe. Count is correct.
Code:
C:\JPSoft\tcmd19x64>ver
TCC  19.10.51 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\tcmd19x64>set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\tcmd19x64>ech %_tcccount
3
Now with 1 stand alone V19 TCC & 2 V20 TCC tabs in TCMD V20 and back using in-process pipe. Count is incorrect in V20 and correct in V19.

Code:
C:\JPSoft\tcmd20x64>ver
TCC  20.11.40 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\tcmd20x64>set _tcccount
%@execstr[ (tasklist tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\tcmd20x64>ech %_tcccount
7
C:\JPSoft\TCMD19x64>ver
TCC  19.10.51 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\TCMD19x64>ech %_tcccount
3
C:\JPSoft\tcmd20x64>tasklist tcc
 7024  tcc               V19.10 [7024]
11216  tcc               V20.11 [11216]
 1884* tcc               V20.11 [1884] - tasklist tcc
Again not what is expected for V20. If I change the definition of _tcccount to tcccount%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]] the resulting count is correct.

I have performed other tests with different combinations of stand alone TCC and TCC tabs and the bottom line is when using in-process pipes the TCC instance count is correct when using V19 and not when using V20.
So what's up with in-process pipes in V20?
 
#2
They work here:
Code:
t:\> ver

TCC  20.11.40   Windows 7 [Version 6.1.7601]

t:\> tasklist tcc
 3724* tcc               20.11.40  [3724]  t:\
 3648  tcc               16.03.55  [3648]  v:\
 3984  tcc               15.01.58  [3984]  v:\

t:\> echo %@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
3
 

rps

Jul 6, 2008
378
4
#3
They work here:
Code:
t:\> ver

TCC  20.11.40   Windows 7 [Version 6.1.7601]

t:\> tasklist tcc
 3724* tcc               20.11.40  [3724]  t:\
 3648  tcc               16.03.55  [3648]  v:\
 3984  tcc               15.01.58  [3984]  v:\

t:\> echo %@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
3
Thanks; Good to know In-process pipes are working with Windows 7, TCC 20.11.40 x32.

In-process are not working as expected on my Windows 10 Pro, TCC V20.11.40 x64 system.

I don't have a usable Win 7 system so your test is more information to help trouble shoot.

Anyone else with a Win 10 system care to add to the mix?
 

rconn

Administrator
Staff member
May 14, 2008
10,755
97
#4
Works fine here with Windows 10 x64 and TCC 20.11.40 x64:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15031]
Copyright 2017 JP Software Inc.  All Rights Reserved
Registered to GIGABYTE-PC

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1
 

rconn

Administrator
Staff member
May 14, 2008
10,755
97
#5
Works fine here with Windows 10 x64 and TCC 20.11.40 x64:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15031]
Copyright 2017 JP Software Inc.  All Rights Reserved
Registered to GIGABYTE-PC

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1
What does TASKLIST look like without the pipe & filtering?
 

rps

Jul 6, 2008
378
4
#6
="rconn, post: 45110, member: 1"]What does TASKLIST look like without the pipe & filtering?
Hope this is what you requested.
These are in a stand alone TCC. They look the same in a TCMD tab.
Code:
C:\JPSoft\TCMD20x64>echo %@execstr[ tasklist tcc]
16456* tcc               V20.11 [16456] - tasklist tcc

C:\JPSoft\TCMD20x64>echo %@execstr[ tasklist /l tcc]
16456* tcc               "C:\JPSoft\TCMD20x64\tcc.exe" title V%_tccver [%_pid]

C:\JPSoft\TCMD20x64>tasklist /l tcc
16456* tcc               "C:\JPSoft\TCMD20x64\tcc.exe" `title V%_tccver [%_pid]`

C:\JPSoft\TCMD20x64>tasklist tcc
16456* tcc               V20.11 [16456] - tasklist tcc
 

rconn

Administrator
Staff member
May 14, 2008
10,755
97
#7
I tried it with Windows 10 and TCC 20.11.40 x86:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15042]
Copyright 2017 JP Software Inc.  All Rights Reserved
Your evaluation period expires in 30 days.
You can buy Take Command and TCC at https://jpsoft.com

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1
Try disabling your TCMD.INI and any plugins you're running. I suspect it's a configuration issue on your system.

Anybody else able to reproduce this?
 

rps

Jul 6, 2008
378
4
#8
I tried it with Windows 10 and TCC 20.11.40 x86:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15042]
Copyright 2017 JP Software Inc.  All Rights Reserved
Your evaluation period expires in 30 days.
You can buy Take Command and TCC at https://jpsoft.com

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1
Try disabling your TCMD.INI and any plugins you're running. I suspect it's a configuration issue on your system.

Anybody else able to reproduce this?
I found the offending tcmd.ini directive. UnicodeOutput was set to yes in my V20 tcmd.ini, and set to NO in all my other tcmd.ini's.

Haven't a clue how that happen, but setting "UnicodeOutput=No" solved this issue.

I looked back as far as V15 and "UnicodeOutput=No" has been the setting of choice.

Everyone; Thanks for the help.