Jump to content
srikanthch

Delphi IDE and application created crashes with Mouse click on TActionMainMenuBar

Recommended Posts

We have a software application developed using Delphi 10.1. The application suddenly crashed in some developer’s laptops.

It crashes while accessing menu items in the application. The menu items are created using TActionMainMenuBar and TActionManager (TActionItem).

After application crash, the Delphi IDE stops working as well especially Delphi IDE closes if we access any menu items and right click of the functions using mouse.

The same feature works fine when we use keyboard in both Delphi IDE and application.

 

The same source code works fine in some standalone Desktops and other VMs.

 

When we debug, it throws an access violation error in the function ScreenToClient in method TActionBarAccessibility.accHitTest. The same code working other machines does not hit this method while accessing menu items.

 

See picture 1a

 

Also, while exiting the application, it throws an access violation error in the procedure InternalShutdown in SPHTMLHelp method. After HelpManager.Release(ViewerID), it becomes inaccessible and hence it throws an access violation error. But the same code in the working machine shows nil to the HelpManager and it exits the application without av error.

 

See Picture 1

 

I just want to know the root cause of the different behavior for the same source code in various machines and what is triggering the crash.

1.png

1a.png

Share this post


Link to post

Isn't SPHTMLHelp an ancient third-party library? If I remember it added support for opening CHM help files before Delphi itself did over a decade ago.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×