[10.50b1 x64] Unhandled exception when closing separate search by AHK script

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *AntonyD »

2Hacker
Ok, let's try to walk through the steps from Author:
https://www.ghisler.ch/board/viewtopic.php?p=413369#p413369
#146217 personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *Hacker »

AntonDudarenko,
Good idea, thank you, but no .dmp file has been created, unfortunately.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *AntonyD »

ok, try this:
procdump.exe -accepteula -ma -e -x <path-to-folder-where-DMP-will-save> <path-to-totalcmd64.exe>
like:
procdump.exe -accepteula -ma -e -x C:\Dumps C:\TotalCmd\TOTALCMD64.exe
#146217 personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *Hacker »

AntonDudarenko,
Thank you, but still nothing. Wouldn't the parent TC need to crash for a dump to be created or so?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *ghisler(Author) »

You don't need to provide a crash dump, I can reproduce it with your AHK script.
By the way, this behavior only happens in the 64-bit version and only since v10.50b1.
Not true, I can a crash dump with TC10. It doesn't happen with 9.51, though.
So far I could not find the reason, I get the same WM_SYSCOMMAND, SC_CLOSE as when I click on the X button...
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *Hacker »

Christian,
You don't need to provide a crash dump, I can reproduce it with your AHK script.
Ah, great, thank you.
Not true, I can a crash dump with TC10.
Hmm, strange, I wasn't able to reproduce it. Sorry for the wrong information then.
I get the same WM_SYSCOMMAND, SC_CLOSE as when I click on the X button
Couldn't the problem be that you get it twice (once from the actual click, a second time from the script)?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *ghisler(Author) »

No, I checked it in the debugger, I only get it once.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *white »

ghisler(Author) wrote: 2022-05-22, 08:11 UTC No, I checked it in the debugger, I only get it once.
Because the crash happens when it tries to do so? Window is already closed when it tries to send the message?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b1 x64] Unhandled exception when closing separate search by AHK script

Post by *ghisler(Author) »

That's a possibility. I now solved it by setting a short 0.1 second timer when I receive WM_CLOSE, and only close the window when that timer ends. This way all pending messages can still be handled before I close the window.
Author of Total Commander
https://www.ghisler.com
Post Reply