Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

%_tccinstances increment new TCC when TCC closed using close in tab

Jun
26
0
TCC 36.00.26 x64 Windows 11 [Version 10.0.26200.8117]

In TCMD: When TCC in a tab window is closed using X in caption bar the %_tccinstances is not decremented.
Typing Exit works.
Behavior is new in version 36.

/Berndt Berg
 
I can confirm that it happens with ConPTY sessions. Now checking a non-ConPTY session... It does not happen.
 
TCC 36.00.26 x64 Windows 11 [Version 10.0.26200.8117]

In TCMD: When TCC in a tab window is closed using X in caption bar the %_tccinstances is not decremented.
Typing Exit works.
Behavior is new in version 36.

/Berndt Berg

When you say "caption bar", are you referring to the X on the Take Command caption bar (i.e., you're closing Take Command), or the X on the tab label (i.e., you're only closing that tab)?

Try it in build 27 (already uploaded) and let me know if it behaves the same.
 
Referring to the X on the tab label (only closing that tab).
I don't see any change in build 27.

I removed my tcmd.ini and tcstart.btm and loaded Take Command.

The first tab echos 1 (%_tccinstances).

Click on the tab label right to tcc window 1.
The second tab echos 2 (%_tccinstances).

Click the X on the tab label (only closing that tab).
Now one one tcc window exist.
The first (only) tab echos 2 (%_tccinstances).
 
Many thanks for maintaining and improving this great software.
I can confirm that the problem is gone with build 28. Thanks again.
 
Erroneous behavior is back. When a TCC-window in Take Command is closed using the X on the tab label (i.e.,only closing that tab) and a new TCC-window is created the internal variable %_tccinstances is incremented by 2 instead of 1.
 
Something is fishy. I have only one TCC running and I get this.

Code:
v:\> echo %_tccinstances
9

That TCC is in WT. If I start TCMD and close TCMD with other than EXIT, back in TCC/WT, _TCCINSTANCES has increased (by 1).
 
Clicking the X to close a TCC tab seems to abort without doing the usual cleanup. I noticed that my TCEXIT file does not get run, so things I wanted saved do not get saved. Now I try to exit only using the EXIT command.

In fact, I just went into the options and turned off Xs in all tabs. Now I have to use the EXIT command.
 
Back
Top