Skip to content

SetClientData crashes when using Fenix aircraft #1821

@neilenns

Description

@neilenns

Describe the bug
Mobiflight is crashing at random times when using Fenix aircraft. Reported in Discord.

Callstack:

System.Runtime.InteropServices.COMException (0xC00000B0): Exception from HRESULT: 0xC00000B0
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.FlightSimulator.SimConnect.SimConnect.SetClientData(Enum ClientDataID, Enum DefineID, SIMCONNECT_CLIENT_DATA_SET_FLAG Flags, UInt32 dwReserved, Object pDataSet)
   at MobiFlight.SimConnectMSFS.WasmModuleClient.SendWasmCmd(SimConnect simConnect, String command, WasmModuleClientData clientData)
   at MobiFlight.ExecutionManager.Stop()
   at MobiFlight.ExecutionManager.timer_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions