- Messages
- 179
- Country
I has been getting this error or exception, which I know what means, that is:
I has been researching in the web and there is very little information about it, the only main one is this:
I continue to get this error code with Simconnect. Can someone assist me? 0xC00000B0
My program runs MULTIPLE threads, and I basically have few <List> variables of things that the MAIN (UI) thread needs to add to the tasks other BACKGROUND threads needs to process. In the MAIN (UI) thread, which is the one that opens a SimConnect connection with the Flight Simulator, I have few pieces of code like this:
In the BACKGROUND thread, I have a code that is intended to copy the list "soundQue" list and transfer to another "sndsPlayList" list that is within the scope of the same BACKGROUND thread logic:
So as per the link above, the threads synchronization somehow messes up with the Named Pipes connection used by the SimConnect library, but to be honest, I don't know, then what I could use to avoid this error to happen, and at the same time, still synchronize my threads to use the same SHARED memory resources, so they don't clash each other, which method is recommended to handle this situation so the program someone avoids this error from happening in the first place. Did anyone have the same experience with this kind of SimConnect error?
Any suggestion or recommendation is well received
Thanks,
Manuel
STATUS_PIPE_DISCONNECTED
0xC00000B0
I has been researching in the web and there is very little information about it, the only main one is this:
I continue to get this error code with Simconnect. Can someone assist me? 0xC00000B0
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?
My program runs MULTIPLE threads, and I basically have few <List> variables of things that the MAIN (UI) thread needs to add to the tasks other BACKGROUND threads needs to process. In the MAIN (UI) thread, which is the one that opens a SimConnect connection with the Flight Simulator, I have few pieces of code like this:
Code:
// Enter this section ONE thread at a time!
lock (_locker)
{
if (isQueueProcessing())
soundQue.Add(new CSoundFileInfo(sFilename));
}
In the BACKGROUND thread, I have a code that is intended to copy the list "soundQue" list and transfer to another "sndsPlayList" list that is within the scope of the same BACKGROUND thread logic:
Code:
// Enter this section ONE thread at a time!
lock (_locker)
{
if (soundQue.Count > 0)
{
// Transfer the list from "soundQue" to "sndsPlayList"
sndsPlayList = new List<CSoundFileInfo>(soundQue);
soundQue.Clear();
}
}
So as per the link above, the threads synchronization somehow messes up with the Named Pipes connection used by the SimConnect library, but to be honest, I don't know, then what I could use to avoid this error to happen, and at the same time, still synchronize my threads to use the same SHARED memory resources, so they don't clash each other, which method is recommended to handle this situation so the program someone avoids this error from happening in the first place. Did anyone have the same experience with this kind of SimConnect error?
Any suggestion or recommendation is well received
Thanks,
Manuel