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

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

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

Post by *Hacker »

Hi,
TC 10.50b6 64-bit, Windows 10 21H2 v10.0.19044.1706.
[EDIT: Can be reproduced since version 10.50b1 and only using the 64-bit version]

Wincmd.ini:

Code: Select all

[3440x1440 (10x20)]
SearchX=1382
SearchY=555
SearchMax=1
Alt-Shift-F7, click Plugins tab, click "X" in the upper right-hand corner to close the separate search window.
Sometimes I have to repeat the steps above two times for the exception to occur.
The following message is shown:

Code: Select all

---------------------------
Error
---------------------------
An unhandled exception occurred at $000000000040F58A:
EAccessViolation: Access violation
  $000000000040F58A
  $00000000005EA73B
  $0000000000412652
  $0000000000412829
  $00000000004129EE
  $0000000000404AB5
  $0000000000404AC6
  $000000000041A96F
  $000000000041B6F6
  $00007FF9923D7034
  $00007FF9937A2651

---------------------------
OK   
---------------------------
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.50b6] Unhandled exception when closing separate search

Post by *ghisler(Author) »

Not confirmed, tried 10 times.
Does it matter that
- you click on the plugins tab
- you close the dialog with the X button instead of ESC
- the dialog is maximized?

Tested on Windows 10 and Windows 11.
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.50b6] Unhandled exception when closing separate search

Post by *Hacker »

Christian,
Does it matter that
- you click on the plugins tab
It seems it indeed does not. Alt-Shift-F7 and clicking on "X" is enough.
- you close the dialog with the X button instead of ESC
Yes, this is indeed necessary. Pressing Esc does not show the message.
- the dialog is maximized?
This is also necessary. With a non-maximized dialog it does not happen.

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
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [10.50b6] Unhandled exception when closing separate search

Post by *white »

Not confirmed.

2Hacker
Same with clean ini?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [10.50b6] Unhandled exception when closing separate search

Post by *Hacker »

Sorry, this seems to be caused by one of my AHK scripts. I use it to close the active window when I click onto the upper right-hand corner of the screen. I am using this script so I don't have to hunt for the "X" in maximized windows which don't use the classical upper right-hand corner "_OX" arrangement scheme.

The script:

Code: Select all

$~LButton Up::
	CoordMode, Mouse, Screen
	MouseGetPos, X, Y, WindowHandle
	If (X = 3439 && Y = 0)
		WinClose, % "ahk_id " . WindowHandle
Return
Strange that TC's separate search window reacts in such a way.

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.50b6] Unhandled exception when closing separate search

Post by *AntonyD »

*Hacker
But something special still has to match exactly in the system, or in the Total settings.
I have been using this type of search for a long time and often, and I have also performed the mentioned sequence of actions many times.
But I haven't seen this kind of error - I still don't see it and I can't reproduce it.

P.S. Aha - got your last post. Indeed - something special ;)
Last edited by AntonyD on 2022-05-19, 09:06 UTC, edited 1 time in total.
#146217 personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [10.50b6] Unhandled exception when closing separate search

Post by *Hacker »

Moderator message from: Hacker

Moved to the English forum.
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
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

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

Post by *Hacker »

Since my script reacts on the mouse button up event, perhaps TC already starts closing the window on the button down event and the script then tries to close a non-existent handle or something like that?

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.50b6] Unhandled exception when closing separate search by AHK script

Post by *ghisler(Author) »

Probably - WinClose sends WM_CLOSE, but there are still some click events in the message queue.

Maybe try sending WM_SYSCOMMAND, SC_CLOSE instead? That would be more "polite" than just killing the window.
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.50b6] Unhandled exception when closing separate search by AHK script

Post by *Hacker »

Christian,
try sending WM_SYSCOMMAND, SC_CLOSE
Thanks for the suggestion, it's even documented in the AHK help. Unfortunately, the resulting behavior seems to be the same.

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
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

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

Post by *Hacker »

By the way, this behavior only happens in the 64-bit version and only since v10.50b1.
I cannot reproduce it using any 32-bit version, nor can I reproduce it using 10.00 final 64-bit.

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 »

But unhandled exception should provide dumps, don't you see them?
#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,
Where should I look for what, please?

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 »

Emm.... I am using Everything for that)))
Just open it, type *.dmp for search and look for TOTALCMD in the dump names - if they show up in the search.
[img]https://i.ibb.co/7XL0njJ/1.png[/img]
#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. The newest *.dmp file I could find is from April 1st this year, so, none from this TC issue.

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.
Post Reply