Home › Forums › Legacy SDKs › Tear Down protocol
- This topic has 2 replies, 2 voices, and was last updated 8 years, 8 months ago by
Robert [Tobii].
- AuthorPosts
- 03/09/2014 at 19:49 #1585
Alejandro Clemotte
ParticipantIn 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?
04/09/2014 at 12:34 #1589Alejandro Clemotte
ParticipantThis 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
}08/09/2014 at 14:29 #1613Robert [Tobii]
ParticipantHi,
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(); }
- AuthorPosts
- You must be logged in to reply to this topic.