-TCx64 opens twice despite of allow 1 copy policy

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

sw3n
New Member
New Member
Posts: 1
Joined: 2014-03-03, 16:01 UTC

-TCx64 opens twice despite of allow 1 copy policy

Post by *sw3n »

when i boot up my windows, and start TC from desktop, and accidentally hit enter twice on the shortcut (after clicking on it), TC starts twice, despite the fact, the "Allow only 1 copy at a time" is checked

windows 7 x64 enterprise
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Cannot reproduce. Windows 7 SP1 x64 Home Premium
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
JFierce7
Senior Member
Senior Member
Posts: 214
Joined: 2005-07-17, 10:47 UTC

Post by *JFierce7 »

I can confirm this problem - Win8.1x64: select TC icon on desktop by mouse, press and hold return.

Also, I'm not sure if it is intentional that you always can start x64 and x86 TC at the same time.

Edit: Strange - doesn't happen everytime, maybe only first time after reboot or if CPU is not idle. But I definitely had 3 instances running.
Last edited by JFierce7 on 2014-03-03, 17:14 UTC, edited 1 time in total.
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

Not confirmed Win x64 SP1
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm this problem - Win8.1x64: select TC icon on desktop by mouse, press and hold return.
I just tested witn Windows 8.1 x64 - I still cannot reproduce the behaviour.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
JFierce7
Senior Member
Senior Member
Posts: 214
Joined: 2005-07-17, 10:47 UTC

Post by *JFierce7 »

petermad wrote:I just tested witn Windows 8.1 x64 - I still cannot reproduce the behaviour.
Would you try this .bat:

Code: Select all

start C:\totalcmd\TOTALCMD64.EXE
start C:\totalcmd\TOTALCMD64.EXE
start C:\totalcmd\TOTALCMD64.EXE
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, sw3n. Hello, JFierce7.

Could you, please, check the commandline behind the link file? Does it launch T.C. with the commandline option "/N"? Provided it does, "/N" will make T.C. create a new instance disregarding the enabled setting "Allow only 1 copy at a time". This is by design in order to be able to override this option on demand.

Cheers,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

2JFierce7
I do it ten times, three times I've got 3 windows of TC simultaneously :shock:
Last edited by Ovg on 2014-03-03, 17:36 UTC, edited 1 time in total.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Would you try this .bat:

Code:
start C:\totalcmd\TOTALCMD64.EXE
start C:\totalcmd\TOTALCMD64.EXE
start C:\totalcmd\TOTALCMD64.EXE
Just did - Windows 8.1 - still only one instance of TC opened.

I do have TC in C:\totalcmd and I have UseIniInProgramDir=7 in wincmd.ini
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

Just did it once more - result is the same:
I do it ten times, three times I've got 3 windows of TC simultaneously
Last edited by Ovg on 2014-03-04, 02:50 UTC, edited 1 time in total.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

OK - I now tested like 15 times - a the 7th try I got 3 instances of TC. At four later tries i got 2 (two not three) instances of TC.

Interestingly enough, when I get 2 or 3 instances the title lines are identical - no [2] and [3].

Even more interestingly - If I allow more than 1 instance of TC and use the batch file, I get one instance with normal title line and two instances with [2] - not one with [3] in the title line as expected.
Last edited by petermad on 2014-03-03, 17:53 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

I once reported that when you start multiple instances quickly the counter in the title bar is wrong. The answer was that that could happen. I think this is similar/related and by design.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

by design
It's rather some problem with racing conditions during detecting another TC instances and also counting them.

@ghisler(Author):
What method of detection does TC use?

Regards
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

It looks like you start the second instance before the first one generates its window. This can happen on very slow machines.
We are not so S.M.A.R.T. as we imagine...
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

... or on machines that have a high CPU usage at the moment of launching TC.
Post Reply