I want to notify the third party the plane is unloading. I'm doing so setting the data via SetClientData at the beginning of PANEL_SERVICE_PRE_KILL stage prior to the SimConnect handle is closed.
However, the third party does not "see" the new data (SetClientData returns S_OK) whereas it works during normal operations.
For tests purposes, after the notification, I have written a timed loop in which I call the events polling loop and I only can see SIMCONNECT_RECV_ID_SIMOBJECT_DATA being received. No SIMCONNECT_RECV_ID_CLIENT_DATA.
At which stage should I set the data?
Is it a bug?