Hi Paul.
I'm getting an error when calling the FSUIPC.AITrafficServices.RefreshAITrafficInformation. I've tried limiting it to just Ground or Airborne traffic and still get this error:
Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at FSUIPC.FSUIPCConnection.AddOffset(Offset Offset)
at FSUIPC.Offset.initDataInfo(String DataGroupName, Int32 Address, Int32 length, Boolean WriteOnly)
at FSUIPC.Offset`1..ctor(String DataGroupName, Int32 Address, Int32 ArrayOrStringLength, Boolean WriteOnly)
at FSUIPC.Offset`1..ctor(String DataGroupName, Int32 Address, Int32 ArrayOrStringLength)
at FSUIPC.AITrafficServices.RefreshAITrafficInformation(Boolean UpdateGroundTraffic, Boolean UpdateAirbourneTraffic)
at FSUIPC.AITrafficServices.RefreshAITrafficInformation()
at P2ASim.P2ASimulatorFSUIPC.OnSecondTimerFired()
I believe there are about 28 AI aircraft airborne when this happened.
Thanks for your help,
Dave