I continue to get this error code with Simconnect. Can someone assist me? 0xC00000B0

It appears when I try to send information sometimes it is fine and sometimes I get this error code with no explanation as it is random. Something to do with COM exception.

I am using Managed code for this program with C#. Also is there a way to request data as it changes instead of polling it constantly with sendmessage?

Thank you!

System.Runtime.InteropServices.COMException
HResult=0xC00000B0
Message=0xC00000B0
Source=Microsoft.FlightSimulator.SimConnect
StackTrace:
at Microsoft.FlightSimulator.SimConnect.SimConnect.SetDataOnSimObject(Enum DefineID, UInt32 ObjectID, SIMCONNECT_DATA_SET_FLAG Flags, Object pDataSet)
at SimConnectLibrary.IOController.d__15.MoveNext() in C:\C#\SimConnectLibrary\IOController.cs:line 136

Exception thrown: ‘System.Runtime.InteropServices.COMException’ in Microsoft.FlightSimulator.SimConnect.dll

STATUS_PIPE_DISCONNECTED
0xC00000B0
The specified named pipe is in the disconnected state.

If the pipe is disconnected unexpectedly without the sim crashing, then perhaps something illegal is going on with your use of the library. Are you using a lock or otherwise synchronizing on one thread when interacting with simconnect?

You can enable debugging (a console window or log attached to the sim) with simconnect.ini. that may show an error on the sim side.

Continual receival of data is possible with RequestDataOnSimObject API. SimConnect_RequestDataOnSimObject

1 Like