Home › Forums › Software Development › Starting service reveals error › Reply To: Starting service reveals error
22/03/2017 at 11:46 #6553
Participant
OK, I got the service to run, I had to make sure all dlls and the service where compiled for the correct architecture.
I have compiled them in x86(that’s was the first that worked)
but now the event for the gazeStrem won’t fire. Here is the Code
using (var lightlyFilteredGazeDataStream = eyeXHost.CreateGazePointDataStream(GazePointDataMode.LightlyFiltered))
{
WriteToFile("Gazestream");
// Start the EyeX host.
try
{
eyeXHost.Start();
}
catch (Exception e)
{
WriteToFile("eyeXHost failed " + e.Message);
}
WriteToFile("EyeXHost started");
try
{
lightlyFilteredGazeDataStream.Next += (s, e) => WriteToFile("Gazestream vals: " + e.X + " - " + e.Y);
}
catch (Exception e)
{
WriteToFile("GazeDataStream " + e.Message);
}
// Let it run until a key is pressed.
}
The WriteToFile outputs get generated, but the lightlyFilteredGazeDataStream.Next doesn’t seem to fire.