- Jul
- 447
- 6
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.
The following is with V19 & V20 stand alone TCC's. Count is incorrect in V20 only.
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.
Now with 1 new V19 TCC tab in TCMD V19 and back to an in-process pipe. Count is correct.
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.
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?
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
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
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
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
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
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?