Why do I enter function MsgHookProc when debugging

Delphi XE7

TMS Component pack 7.9.0.1



When debugging and pressing F7 I often end up in function MsgHookProc in AdvGrid.



I do have an AdvGrid on a form in this project but that form is not instantiated at the time I'm experiencing this phenomenon and so I wouldn't expect this.



Presumably, if AdvGrid is listening for messages, there is also as performance issue.



Why is this happening and how do I stop it?



Best wishes



Jeff

The form message hook is for handling the edit focus helper in the grid. The hook is needed to have this work properly.  This message hook should not affect performance. It is a Windows message handler just like every TWinControl descending component has a Windows message handler.
It's unclear why the debugger enters this proc. In our debugging sessions, we haven't noticed anything similar. If this bothers you and you do not use the focus helper, comment calls SetWindowsHookEx and UnhookWindowsHookEx in ADVGRID.PAS