Home Forums Legacy SDKs other Tear Down protocol

Tagged: , ,

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1585
    Profile photo of Alejandro Clemotte
    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
    Profile photo of Alejandro Clemotte
    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
    Profile photo of Robert [Tobii]
    Robert [Tobii]
    Moderator

    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:

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

You must be logged in to reply to this topic.