Invalid attach tabs list

May 20, 2008
473
2
Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.14393]
TCC Build 40   Windows 10 Build 14393

If I right click on the session tab bar and select 'Attach tabs' from the menu, the list of sessions I can attach includes prior TCC sessions that have been exited. Selecting one of those sessions results in this error:

upload_2017-2-20_12-12-27.png

Tim
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Interesting bug / behavioral change, but it's in Windows, not in TCC. Conhost is holding on to the window (same issue as another thread about closing TCC). It works in Windows 7, but not in (at least recent) Windows 10. I suspect it's one of the changes Microsoft made in the console to support the Linux environment; I'll trace through what CMD is doing and try to replicate it.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I finally found a workaround (included in 20.11.43, already uploaded) that will close the controlling conhost when TCC is closed. (Windows would eventually reuse the conhost sessions, but it could take a while and use up a lot of memory.)

Of course, the workaround only affects TCC sessions -- the numerous conhost sessions created & left hanging by other Windows apps (like Visual Studio) are still going to be with you, at least until you update to a more recent Windows 10 version.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Of course, the workaround only affects TCC sessions -- the numerous conhost sessions created & left hanging by other Windows apps (like Visual Studio) are still going to be with you, at least until you update to a more recent Windows 10 version.
Would someone please be more precise about this Win10 version stuff? I'll get a new computer soon, probably from Dell. Will it have a sufficiently new Win10? If not, will Windows update bring me up to a sufficiently new Win10? If not, how do I update to a sufficiently new Win10?
 
May 20, 2008
473
2
It doesn't quite work yet with build 43. If I detach the TCC tab and then type the exit command, it hangs and doesn't close the TCC window. While it is hung, the TCC session appears in the list of tabs that can be attached, though attempting to attach it has the same invalid handle message in AttachConsole.

Also, while the detached TCC session is hung on exit, it changes to conhost in the tasklist.
upload_2017-3-6_17-51-26.png
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Would someone please be more precise about this Win10 version stuff? I'll get a new computer soon, probably from Dell. Will it have a sufficiently new Win10? If not, will Windows update bring me up to a sufficiently new Win10? If not, how do I update to a sufficiently new Win10?

The Windows Creators Update (which is scheduled for April) does not have the dangling conhost bug. You can get the preview now, or wait until it's officially released.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
It doesn't quite work yet with build 43. If I detach the TCC tab and then type the exit command, it hangs and doesn't close the TCC window. While it is hung, the TCC session appears in the list of tabs that can be attached, though attempting to attach it has the same invalid handle message in AttachConsole.

Not reproducible here (Windows 10 build 15048). And that's a sufficiently obscure thing to be doing that I'm not going to spend any effort on it when Microsoft will be updating everybody soon.

Do you have a TCEXIT?
 
May 20, 2008
473
2
Awesome! 20.11.46 fixes the issue; tested on both Win10x64 and Win7x86. I did another edge case test. Before closing the detached session, I opened the attach tabs dialog to see the session in the list. Once the dialog/list was displayed, I then exited in the detached tab. Clicking ok back in the attach dialog briefly showed another tab that immediately disappeared. But, no errors. Yeah!
 
May 20, 2008
473
2
I should add: This release fixed some other Win7x86 issues also. The desktop icon is now created by the installer. Before, it appeared and disappeared. Now, it stays. I can start TCMD from the shortcut and don't have to start TCC first and then start TCMD and attach the first session. And, finally, registration worked and no longer crashes. Good release. Thanks.
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly @SMWRITE invalid handle Support 8
Chen Touboul When i try to delete an empty folder i got "the dirctoy name is invalid" Support 3
thorntonpg option /u not working The directory name is invalid Support 5
Alpengreis Fixed New INI directive "ANSIWin10" is invalid Support 2
gschizas Fixed Cannot use extended path to delete invalid file Support 3
jbanaszczyk Invalid client configuration file Support 6
tmaynard Invalid item name "Lua" Support 6
Stefano Piccardi Issue: MKLINK /J creates invalid link [TCC 14.03.53] Support 4
M Why is an obviously invalid file name allowed? Support 2
T TCC reading TCMD.INI causing "Invalid item name" warnings and pauses Support 2
S WAD _exit returns invalid code under some conditions Support 13
S Fixed BDEBUGGER died on invalid watch request Support 4
fromano Invalid parameter 12.0.34 x64 Support 1
P Help > Update triggers invalid configuration Support 3
David McClelland TC10 - cdd /t gives invalid parameter Support 2
B Invalid updates configuration file. ?? Support 2
Joe Caverly Create Windows Jobs and optionally attach processes to a job Support 17
I Attach console Support 3
D Detach / Attach consoles Support 7
Emilio III Attach tab for mouse driver? Support 2
S Increasing Font Point Size in Command Tabs Support 2
S Setting Tabs=Bottom makes text turn black Support 6
vefatica Tabs dialog? Support 9
CWBillow Back up TCMD tabs Support 2
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
rps TCMD Tabs priority option setting Support 0
vefatica IDE stuck on "Insert tabs as spaces" Support 0
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
D new startup tabs Support 12
M Quick tip: Close tabs in TCMD Support 0
CWBillow PowerShell Tabs in TCMD Support 11
R TCC IDE Tabs - inactive tabs hard to see Support 14
fpefpe Documentation Command tabs Support 4
vefatica Start-up directory for new tabs? Support 7
D Documentation Using "send all input to other tabs" Support 11
SeoulBigChris Save Environment (Tabs) on Exit? Support 3
Y Close button on tabs Support 7
vefatica TCMD tabs and input focus Support 11
tinjaw Looking for best practice for custom environment on tabs Support 0
B Tabs not showing in TCMD11 Support 3
R TC 11.00.33 - Options/Configure TC/Tabs Support 1
p.f.moore TC 11 - can the tabs on the button bar be switched off? Support 6
D sync navigation between Folders List panel and the Tabs console Support 11
CWBillow TCMD 10 and Startup Tabs Support 10
nikbackm TCC with specific @inifile for new tabs Support 3
A Cannot permanently remove Tabs toolbar using View menu - bug? Support 8
A I dont see anything in the alias/functions/batchvariables tabs in IDE Support 13

Similar threads