I am building an application that uses the Reuters API, and I start the connection to Reuters via
_eikonConnection = new EikonDesktopDataAPI.EikonDesktopDataAPI()
_eikonConnection.OnStatusChanged += OnStatusChanged;
This works fine in some cases (i.e. OnStatusChanged is triggered after a few seconds), but it does not always work. The event is never triggered. How can I find out what the problem is?
Thanks in advance
There are multiple scenarios where OnStatusChanged event may not be raised. For instance if a user shuts down Eikon while your application is running, this creates a terminal state for EikonDesktopDataAPI singleton. There is no way to recover from this state other than restart your application's process. You can check the value returned by Initialize method. And you can also check EikonDesktopDataAPI connection status by calling Status property, which can be done anytime and does not have to be triggered by OnStatusChanged event. Both the value returned by Initialize and EikonDesktopDataAPI connection status should provide you a clue about the state of EikonDesktopDataAPI object.
I hope this helps.