HitTest returns System.NullReferenceException ?

SyntaxEditor for Windows Forms Forum

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

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


Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA

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 (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.