Access violation when sending "Show context menu"

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Axe1
Junior Member
Junior Member
Posts: 25
Joined: 2006-08-21, 19:47 UTC

Access violation when sending "Show context menu"

Post by *Axe1 »

When I trying to send "Show context menu" command from my application by this code

Code: Select all

HWND Total_Wnd=FindWindow("TTOTAL_CMD",NULL);
if (Total_Wnd!=0)
    SendMessage(Total_Wnd,0x433, 2500,0);
TC7.0pb2 show such error: "Access voilation at address 004450B8. Read of address 00000008."

In TC6.55 - everything is OK.
Last edited by Axe1 on 2007-02-25, 22:57 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Does the context menu still work when you press Shift+F10, or right click on a file for 1 second?

If no, then the problem isn't in Total Commander, but probably a faulty shell extension.
Author of Total Commander
https://www.ghisler.com
Axe1
Junior Member
Junior Member
Posts: 25
Joined: 2006-08-21, 19:47 UTC

Post by *Axe1 »

ghisler(Author) wrote:Does the context menu still work when you press Shift+F10, or right click on a file for 1 second?
It works.

WinXP SP2 Eng
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I'm using the EXACT same message when the user presses Shift+F10! However, I use PostMessage, not SendMessage internally. Does this make any difference?
Author of Total Commander
https://www.ghisler.com
Axe1
Junior Member
Junior Member
Posts: 25
Joined: 2006-08-21, 19:47 UTC

Post by *Axe1 »

Error appears only when TC isn't in focus.

exe and source
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the info, I will try it with that condition.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Should be fixed now, please test!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

BUMP - Anyone can confirm that, please?
Author of Total Commander
https://www.ghisler.com
Axe1
Junior Member
Junior Member
Posts: 25
Joined: 2006-08-21, 19:47 UTC

Post by *Axe1 »

BUMP - Anyone can confirm that, please?
Yes, now everything is OK.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply