TakeCommand exits after launching TortoiseHg Workbench

Aug 28, 2008
124
4
This is going to sound weird, but that's only because it is weird. Since upgrading to TakeCommand 17.x, I've found a strange behavior: TakeCommand exits after launching TortoiseHg Workbench. I'm just running the following command:

"C:\Program Files\TortoiseHg\thgw.exe"
When I do that, TakeCommand exits immediately, and apparently without even executing the TcExit.btm command as the command does not appear in my history (which I save from that file). I'm using the latest version of TakeComamand (TCC 17.00.71 x64 Windows 8.1 [Version 6.3.9600]) and the latest 64-bit version of TortoiseHg. Thanks for any help!
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
Not reproducible here. Does TortoiseHG start successfully?

TCMD (actually TCC.EXE) is unlikely to be directly involved; all it does is pass the name of the executable to the Windows CreateProcess API. It's more likely to be a third-party app injecting a dll, or possibly a plugin. Try starting TCC without any plugins, aliases, and TCMD.INI and see if it behaves the same.
 
Aug 28, 2008
124
4
Yes, TortoiseHG does start successfully. I'm a little puzzled, though, insofar as I presently have version 16.x of TakeCommand installed, and it doesn't exhibit this behavior, whereas TakeCommand 17.x does. I'm not sure how to start TCC as you suggest, without any plugins. I know how to get rid of my aliases and such, but I don't think I even have plugins installed. I'll see if I can figure that out.
 
Aug 28, 2008
124
4
Ok, I don't even have a plugins folder under "C:\Program Files\JPSoft\TCMD17x64", so I don't believe I have any plugins loaded. I removed my TCStart.btm and TCExit.btm commands and have verified that I have no aliases defined. The problem still occurs with all that. However, when I rename my TCMD.INI file in the %LOCALAPPDATA% folder, the problem goes away. I'm attaching the file to this post; can you perhaps advise me what's the source of the trouble?
 

Attachments

  • TCMD.INI
    2.2 KB · Views: 93

rconn

Administrator
Staff member
May 14, 2008
12,345
150
I was able to reproduce it with your TCMD.INI. A little experimentation showed what the problem was (and it wasn't what you thought).

First, TCMD is not exiting -- TortoiseHG is moving, resizing and hiding the TCMD window. TCMD and TCC are still running; you just can't get to them. If you run Task Manager, you can see the processes are still running.

Second, TortoiseHG is only doing this if you have the TCC (not TCMD) WindowState=Custom option set in your TCMD.INI. If you're running TCMD, you don't need this option -- it only affects stand-alone TCC windows. The (hidden) TCC console window was being set to a fairly large size (1280 x 720) and for some inexplicable reason TortoiseHG was taking umbrage and deciding to rid itself of the TCMD window.

If you want to know why, you'll need to talk to the TortoiseHG developers. If you just want it to work, set WindowsState=Normal.
 
Similar threads
Thread starter Title Forum Replies Date
Phileosophos Fixed TakeCommand exits upon "set [" command Support 14
samintz Starting Terminal from TakeCommand Support 3
H Takecommand.pdf failed not a pdf file Support 6
AndrewJ TakeCommand v23 + ANSI color sequences leads to black on black text Support 6
vefatica Permanently registering TakeCommand v8.02.106? Support 17
K Unable to register TakeCommand Support 4
C "TakeCommand has stopped working" Support 3
P Access denied TakeCommand.19.0.key Support 2
nickles Move takecommand.18.0.key location to installation directory Support 4
C TakeCommand 18 Installation Failure Support 13
mikea TakeCommand "evangelism" -- how? Support 1
Stefano Piccardi can start TakeCommand 15.01 on Windows XP Support 6
knudvaneeden cls in TakeCommand screen does not clear full screen Support 26
Vasilich Does TakeCommand support projects? Support 2
vefatica TakeCommand has stopped working Support 6
B Lockups with TakeCommand v12 Support 17
williamleara Can't Close TakeCommand After Adding 2nd Toolbar Tab Support 3
C TakeCommand 11 won't start Support 1
mscheuner TakeCommand no longer showing its icon in Win7 Taskbar Support 12
A TakeCommand screen width Support 1
mscheuner TakeCommand doesn't "see" my LiveDrive Support 1
G WAD Nested if exits enclosing if Support 3
Stefano Piccardi IDE unexpectedly exits inside this batch file Support 17
lassevk exit(1) in a python script exits console, by design or bug? Support 1
Joe Caverly Help not launching in CMDebug v23.00.14 x64 Support 1
gentzel Bug launching external commands in 20.11.43 Support 11
R Everything /o not launching Preferences dialogue Support 5
mikea How to? Launching TCC -- avoiding UAC dialog Support 15
mikea How to? TCC 15: popup windows; launching Perl scripts Support 10
jwiede ide.exe not launching? Support 13
Jay Sage Problem Launching Google Earth from TCMD Support 17
noahcoad Possible Bug? Launching 4nt.exe Goes Hairwire Support 10

Similar threads