[TC10.50beta] Division by zero when opening Directory hotlist configure dialog

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
amach
Junior Member
Junior Member
Posts: 41
Joined: 2003-04-09, 14:23 UTC
Location: Brazil

[TC10.50beta] Division by zero when opening Directory hotlist configure dialog

Post by *amach »

[Tested with v10.50b1 and v10.50b3]

If I type Ctrl+D to pull down the directory hotlist menu and then choose "Configure..." to open its Change directory dialog window, then the app issues a "Division by zero" error, with the option to copy its text (which is pasted below):
---------------------------
Total Commander 10.50b3
---------------------------
Division by zero.
Division by zero
Windows 10 Professional 10.0 (Build 19043), base: 0400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Stack trace (x64):4F10C0
87C221 87BF9D 40FF0D 8777F8 86D0F0 958B5B 89C167 952357
7FFA2021E858 7FFA2021E4EE 8962F2 8522E4 7FFA2021E858 7FFA2021E299 7FF9F8B154EC 7FF9F8B146B2

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
If I choose Yes, then apparently nothing wrong happens, and I can continue using the app; moreover, the next time I open the Configure window, the error doesn't occur again. Only if I close the app and open it again, then the error occurs at the first time I open the Configure window.
If you confess with your mouth Jesus as Lord, and believe in your heart that God raised Him from the dead, you will be saved. (Romans 10.9)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50beta] Division by zero when opening Directory hotlist configure dialog

Post by *ghisler(Author) »

That's very odd, this code should not be reached at this stage: It's the drag&drop function reacting to mouse moves. You are somehow getting a mouse move message before getting the "show window" message. I could not reproduce it, but it's simple to prevent the code from being used at this stage.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50beta] Division by zero when opening Directory hotlist configure dialog

Post by *ghisler(Author) »

2amach
Are you still able to reproduce this in beta 4? I have added some code which should prevent it from happening, although I cannot test it myself because it has never happened here. But your stack trace gave me a clue of what was happening.
03.05.22 Fixed: Division by zero when opening Directory hotlist configure dialog (not reproduced) (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50beta] Division by zero when opening Directory hotlist configure dialog

Post by *ghisler(Author) »

Since there was no reply and no new reports, I will remove this thread to fixed bugs. Please reply here if you still have this problem.
Author of Total Commander
https://www.ghisler.com
Post Reply