CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *Ovg »

Code: Select all

CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111
I found this record in log file. Who is to blame and what to do? BTW I haven't any problem with button bar .....
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
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *ghisler(Author) »

It looks like TC failed to open the button bar file at one time in the past, so it couldn't load any buttons (0 instead of 111).
Author of Total Commander
https://www.ghisler.com
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *Ovg »

This occurs at every execution cm_ReloadBaricons ..... but buttonbar loads and working fine ...
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
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *gdpr deleted 6 »

I can confirm the observed error in the log while having no problem with the functioning and appearance of the button bar. When editing the button bar or executing cm_ReloadBaricons, i get the same error message in the log file. I otherwise don't get this error message during normal operation, not when i start TC, not when i close TC.

To me, this smells like some file access conflict, where TC tries to concurrently open the button bar file more than once in some non-sharing access mode and thus creating an access conflict. (Hmm, i think i am going to run ProcMon to see what process tries to access the button bar file exactly when in an attempt to confirm or disprove my suspicion...)

UPDATE: Having now looked with ProcMon about at file accesses with regard to TC and button bar files (.bar, .br2) when executing cm_ReloadBaricons, i haven't found any actual access failure at all. This makes me now rather think the error log line is being emitted in error due to some other circumstances/code bug.
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *Ovg »

2elgonzo
Thanks for digging into :thumbsup: :thumbsup: :thumbsup:
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: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *petermad »

I can confirm the observed error in the log while having no problem with the functioning and appearance of the button bar. When editing the button bar or executing cm_ReloadBaricons, i get the same error message in the log file.
I can confirm this too - also with a fresh ini file (after enabeling logging):
20-11-2020 22:19:13: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->18
20-11-2020 22:19:13: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->6
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *Ovg »

2petermad
Thanks for testing!

Even with one button ....
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
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *ghisler(Author) »

I see - it's not a bug after cm_ReloadBaricons: TC deletes the .br2 bar cache when you use this, so the function fails to load the buttons and has to recreate them.
Author of Total Commander
https://www.ghisler.com
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: CreateFile(Error: Failed): Button bar (ReloadAll): Different button count loaded: 0<->111

Post by *Ovg »

2ghisler(Author)

So that is by design? Ok, thank you for clarification!!
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
Post Reply