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.