Random Simconnect disconnected issue

I am randomly getting a simconnect disconnect. Nothing is received by my simconnect client (external), but looking at the simconnect log I see this:

51.22435 [321] Disconnected! (5, C000014B)
51.33678 [322] Disconnected! (5, C000014B)

This occurs after I have created created all my data definitions and mapped my data. I then request the user sim object before I request the data, but this is never received. Looking at the log, this is because the simconnect connection has been silently disconnected.
My external app uses two simconnect connections (connections 321 and 322), and both are disconnected. I am also running my own WASM module (connection 320) but this is not affected.

This is an occasional error, i.e. happens roughly 30% of the time when I run the app.

Does anyone have any idea what could cause this issue? What is error “(5, C000014B)”? I have seen this error before, returned from SimConnect_CallDispatch in earlier versions of MSFS. I am not receiving this error anymore, it is just reported in the simconnect log file.

I have attached the full simconnect log file.

Thanks and regards,

John
SimConnect-disconnected-ln24085.zip (905.9 KB)

Hello @ImpoliteGem5317

This error code corresponds to STATUS_PIPE_BROKEN
[MS-ERREF]: NTSTATUS Values | Microsoft Learn

Please check your application is not considered as a malware on your system.

Regards,
Sylvain

Hi Sylvian,

thanks for your response.

My application is not considered malware. Also, as I said, this only happens occasionally.

Ok - how come this error is not reported back to the client via the return status of SimConnect_CallDispatch? If it was, I could take action, but this error is only logged in the SimConnect error log. Other pipe errors (e.g. 0xC00000B0) are returned to the client.

Regards,
John