HI all,
I'm having an issue with weather in FSX, specifically when using the Project Magenta instructor station. The general idea is that my application synchronises the weather across any given number of clients from the server. This works fine on its own, the weather stays in sync nicely. The problem arises when the user attempts to set the weather using the PM Instructor station in parallel with my application, it crashes FSX.
I originally thought the problem may have been the ulSignature variable was denying PM access and that was somehow causing FSX to crash, but I've since gone to using a zero value for the signature to leave access rights for PM and the same crash happens. All other PM functions seem to work fine without issue.
The process I'm following is:
Create a NewWeather structure, populate ulSignature field with zero, populate chICAO field with 'GLOB'.
Write the NewWeather structure to 0xCC00, call process.
Read the NewWeather structure from 0xCC00, call process.
NewWeather nw;
nw.ulSignature = 0;
nw.chICAO = "GLOB";
if(!FSUIPC_Write(0xCC00, 1024, &nw, &dwFSUIPCResult) || !FSUIPC_Process(&dwFSUIPCResult))
{
printf("Modifying weather structure failed!\n");
}
if(!FSUIPC_Read(0xCC00, 1024, &nw, &dwFSUIPCResult) || !FSUIPC_Process(&dwFSUIPCResult))
{
printf("Reading weather structure failed!\n");
}
Has anyone had this issue before? Can anyone see anything obvious that might be causing PM to bunk out FSX? Is it possible that PM is seeing the GLOB variable and freaking out?