CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unlocked

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *petermad »

DrShark wrote: 2020-02-27, 17:45 UTC What can I say, here on Russian 32-bit Windows XP Pro SP3 with hh.exe v. 5.2.3790.2453 and hhctrl.ocx v.5.2.3790.4110 for this case I also get Access denied error on overwrite attempt...
I have the same versions of hh.exe and hhctrl.ocx - The only difference is that my Windows is Danish and it is the Home Edition.

My Windows XP build is: 2600.xpsp_sp3_qfe.120704-0421 : Service Pack 3
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *DrShark »

Flint wrote: 2020-02-27, 19:32 UTCtry checking which process blocks the file (for example, in Process Explorer).
It's locked by TOTALCMD.EXE (ProcExp shows 1 handle with 3 References for this file).
Usher wrote: 2020-02-27, 18:28 UTCMaybe it's your antivirus…
It's close to clean Windows XP, so no antiviruses.

Also, as I wrote above, Christian Ghisler is experiencing the same CHM lock on his Windows XP.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *DrShark »

petermad wrote: 2020-02-27, 19:43 UTCI have the same versions of hh.exe and hhctrl.ocx - The only difference is that my Windows is Danish and it is the Home Edition.
I just tested on Home Edition of Russian Windows XP SP3 with hh.exe v.5.2.3790.2453 and hhctrl.ocx v. 5.2.3790.4110, and there is no CHM lock there!

Flint, Usher, did you test on Home Edition too?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *Flint »

2DrShark
No, mine is Pro.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *Usher »

2DrShark
Mine is Home. Have you tried to run TC from another Windows user account? Don't manipulate with "Run as", just create a new user account.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *DrShark »

Usher wrote: 2020-02-27, 23:44 UTCHave you tried to run TC from another Windows user account?
I have second account on machine with WinXP Pro, it has user (not Administrator) privileges and there's a classic theme on that account, while the account with Administrator privileges uses default XP theme, and the lock problem is on both accounts (tested with closing of all TC instances or complete logging off user before switching to another account).

On WinXP Home, where I don't have the lock problem, there is only one account with Administrator privileges which uses default Windows XP theme.

I don't think it will be easy to find the reason of CHM lock on some Windows XP machines: it may be some Windows update installed or not installed on certain Windows, some Internet Explorer or Windows setting / local policy etc...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *Usher »

2DrShark
Testing already existing account isn't helpful. I really mean a freshly created user account without unknown or forgotten settings changes. You should first test a clean account and if its all OK, change theme to classic and test again, then make another change etc.

The problems may be on a registry level (system or user part) or on a file system level. Some hints:
* Some program might make the changes - virus or other malware, antivirus or internet security suite, overzealous crap cleaner or other cleaning software, etc. – and you don't remember which one and when. In this case TC may work OK from a new user account.
* The changes might be made also for default user settings. In this case TC may have problems also on a new user account.
* There may be broken privileges for TC directory or some files inside. In this case you should make a backup of TC config (plugins, addons etc.), delete the whole directory, run chkdsk on the system partition and partition where TC has been previously installed, and only then reinstall TC. If there is no problem with registry settings, TC will run OK.

One forgotten question: Did you install all updates for Windows POSReady2009 / XP Embedded? Maybe missing updates are the reason, as you suspect.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *ghisler(Author) »

Unfortunately Windows XP locks the CHM file even when you just open the index (F1 in main TC window), something which never happened in Vista or newer even on older TC versions. There seems to be no way to prevent that lock in XP.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *petermad »

Unfortunately Windows XP locks the CHM file even when you just open the index (F1 in main TC window
well, not here on my Windows XP Home Edition SP3 (it is a pretty prestine installation)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *DrShark »

2ghisler(Author)
As you can see from above posts, petermad, Flint and Usher don't have the lock issue on their XP systems, and I also don't have it on one of my XP computers, but have on another one. Do you have the lock on all your XP systems?
Usher wrote: 2020-02-28, 14:39 UTCI really mean a freshly created user account without unknown or forgotten settings changes. You should first test a clean account and if its all OK, change theme to classic and test again, then make another change etc.
On XP machine with lock problem I tested with built-in Administrator account in Safe Mode without Explorer shell, and the lock is still there, so I'm pretty sure it has nothing to do with local accounts settings.
Usher wrote: 2020-02-28, 14:39 UTCThere may be broken privileges for TC directory or some files inside.
On both XP computers TC installed in C:'\totalcmd\, which shouldn't have issues with privileges (is they would, CHM help probably wouldn't even be opened) and the lock problem is only on one of XP system.
Usher wrote: 2020-02-28, 14:39 UTCDid you install all updates for Windows POSReady2009 / XP Embedded? Maybe missing updates are the reason, as you suspect.
I don't have latest updates installed, so it's possible that some missing update is a reason.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *Usher »

2petermad
Just confirmed the problem. Create a new user account with LIMITED rights (NO Administrator) and do tests using the new account. It doesn't matter – Windows XP Home or Pro.

2ghisler(Author)
Which process is called to run CHM help? HH.EXE is used only for direct CHM opening with Enter or double click.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *DrShark »

Usher wrote: 2020-02-28, 16:29 UTC2ghisler(Author)
Which process is called to run CHM help? HH.EXE is used only for direct CHM opening with Enter or double click.
This question is answered in this topic, see posts by ghisler(Author).
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *Usher »

2DrShark
Direct link or direct answer, please. Sorry, I'm distracted by high temperature.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *Flint »

Even with limited account in XP I cannot reproduce the problem. I open the Pack files dialog, press F1 - help is opened, Process Explorer shows that totalcmd.exe now has the file handle to the CHM. I close the help window - the handle disappears.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help opened with F1 from some dialogs, after closing then not released by TC, and not re opened with F1 if unloc

Post by *DrShark »

2Usher
DrShark wrote: 2020-02-06, 06:38 UTCTOTALCMD.CHM is used by TOTALCMD.EXE.
ghisler(Author) wrote: 2020-02-09, 09:36 UTC TC does not use the Delphi help system here. I'm using Delphi 2 for 32-bit, and it only supports HLP files. Instead, I make just a single function call:
HtmlHelp (as described above)
[...]
Maybe it's protected somehow by the html control
I suppose the "html control" mentioned there is hhctrl.ocx.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply