Home Forums Legacy SDKs Tear Down protocol

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1585
    Alejandro Clemotte
    Participant

    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-2.0.3.182-Win32 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?

    #1589
    Alejandro Clemotte
    Participant

    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
    }

    #1613
    Robert [Tobii]
    Participant

    Hi,

    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:

            protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
            {
                base.OnClosing(e);
    
                _eyeTrackingEngine.Dispose();
            }
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.