HitTest returns System.NullReferenceException ?

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Version: 4.0.0274
Avatar
Hi,

I'm having a problem using the HitTest method.
I call it in the mouseMove method and everything works fine except if the mouse cursor is under the last line of code

protected override void OnMouseMove(System.Windows.Forms.MouseEventArgs x_e)
{
    SyntaxEditorHitTestResult l_htr = HitTest(x_e.Location);
    if (l_htr.DisplayLineIndex >= 0)
    {
        ...
In that case :
* l_htr IS NOT null
* l_htr.DisplayLineIndex = System.NullReferenceException
(like other methods...)

I don't understand what's happening and I don't know how to test it !!!
(to avoid a try..catch)

Any idea ?

Thanks for your help

Stéphane

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi,

Please make a simple project that shows it happening and email it over. We're not seeing it occur here. Thanks!


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 8 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.