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?
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.