Home Forums Legacy SDKs other Tear Down protocol

Tagged: , ,

This topic contains 2 replies, has 2 voices, and was last updated by  Robert [Tobii] 3 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1585

    Alejandro Clemotte

    In the tear down protocol of the Tobii Gaze SDK Developer’s Guide .NET API Specifics the first step is:

    1. To tear down the active connection to the eye tracker, call the method tracker.Disconnect().

    But in the sample of the TobiiGazeSdk-DotNetApi- this step is not done. Why? Is this a bug?

    Sometimes (not always) this sample give me a error when I stop it. Can be this the problem?


    Alejandro Clemotte

    This is the error when I stop the sample:

    An unhandled exception of type ‘System.InvalidOperationException’ occurred in System.Windows.Forms.dll

    An the line is this:
    private void GazePoint(object sender, GazePointEventArgs gazePointEventArgs)
    BeginInvoke()); <–This line of code


    Robert [Tobii]


    Thank you for reporting this bug. You are right, the tear-down in the WinFormsSample is not correct.

    I added an OnClosing event handler to dispose the eye tracker and avoid the crash:

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.