Hi guys,
I am updating MSFS via a call of hr = SetDataOnSimObject(...) in a while loop.
The update is done via a structure (called POS) that contains all the necessary info. So far so good. If I check the result returned by the function, I get a 0 as I would expect.
However, after a while, and with the same structure POS, the function returns a non zero result, a negative one, meangin that the function failed to update.
There is really very little info on what this error code means and I cannot figure out what is the cause of this error, since the structure I use inside the function does not change.
Moreover, the call to the function fails only after quiet a while, which would lead to indicate a memory issue.
Do you have any pointers on where to get more info on this error number, or on how to check the cause of that?
Thanks
-S.
I am updating MSFS via a call of hr = SetDataOnSimObject(...) in a while loop.
The update is done via a structure (called POS) that contains all the necessary info. So far so good. If I check the result returned by the function, I get a 0 as I would expect.
However, after a while, and with the same structure POS, the function returns a non zero result, a negative one, meangin that the function failed to update.
There is really very little info on what this error code means and I cannot figure out what is the cause of this error, since the structure I use inside the function does not change.
Moreover, the call to the function fails only after quiet a while, which would lead to indicate a memory issue.
Do you have any pointers on where to get more info on this error number, or on how to check the cause of that?
Thanks
-S.