Home Forums Software Development Starting service reveals error Reply To: Starting service reveals error

#6553
Roman Bengl
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.