In SAP NWBC, SAP GUI shows a menu button. Upon pressing that button, the menu appears, but stays visible all the time and the published application hangs. Issue wasn't happening in XenApp 6.5 and started after migrating to CVAD 7.x.
Below is the RCA which was shared by SAP while debugging one of the reported support cases,
The message WM_GETOBJECT is called several times from external process(es) (it is not called by SAP code) and results in one of the call stacks above.
The COM object needs to return the return-value of the COM-Method “LresultFromObject” which gets the “IAccessible” interface of the COM object as a parameter.
The “LresultFromObject” method-call internally does an increase of the COM object reference counter and the sender/caller needs to decrease this reference counter if he is done with the object.
The result of SAP RCA:
Based on the above RCA, we determined that Citrix doesn’t call the WM_GETOBJECT directly but we utilize Microsoft Active Accessibility and Microsoft UI Automation to do the same. Please refer to the below MSDN page on WM_GETOBJECT: https://docs.microsoft.com/en-us/windows/win32/winauto/wm-getobject
Sent by both Microsoft Active Accessibility and Microsoft UI Automation to obtain information about an accessible object contained in a server application.
Applications never send this message directly. Microsoft Active Accessibility sends this message in response to calls to AccessibleObjectFromPoint, AccessibleObjectFromEvent, or AccessibleObjectFromWindow.
We make use of Microsoft Active Accessibility in different components. One of which is CtxUIMon.dll, which makes use of it when one of the following 2 Citrix policies is enabled (They are disabled by default)