Home › Forums › Software Development › How to detect if Tobii Eye Tracker 5 is connected without loading the DLL file? › Reply To: How to detect if Tobii Eye Tracker 5 is connected without loading the DLL file?
Thanks for the replies!
Generally, I always try to avoid loading DLLs when they’re not needed. It helps to prevent potential crashes or incompatibility with older OS versions. For example, if for some reasons my program was used on Windows XP or Vista, and Tobii’s DLLs failed to load, the program would crash on start.
Due that not many people have Eye Tracker devices, I decided that it’s better to first detect if any Tobii software is installed, and then load DLLs. The previous method I used was checking if a process containing name “Tobii.EyeX” is running. I noticed, that Eye Tracker 5 is not using the old software, so I updated my detection method to check if Service named “Tobii Service” is running. I would just like to confirm that it’s the correct method of detecting the Tobii software for Eye Tracker 5 devices? Is this service running when Eye Tracker 5 drivers are installed?