We are extensively using linked lists of pointers in our planes and found that on repeated calls to the new operator, an action required to allocate elements in the linked list, the internal malloc function invoked by the new operator fails and leads to a WASM CTD. This was observed with SDK v24+ (including FS2024) but it is not happening with earlier SDK’s. The point of failure appears random on an “n-th” call to new and not a result of any common systematic action.
Any help would be appreciated and I remain at your disposal for any additional information.
Can you clarify if you have tried to build your module with the MSFS 2024 SDK (which of course would only allow it to run in 2024)?
I’ll ask my team to check the issue you are reporting.
After investigation, we think we have indentify and fixed the problem.
We still have an issue, on restart after all gauges have been killed there is a call to a CommBus events. Causing a crash in the module. There is no direct impact on the gameplay, because the wasm is reloaded just after. But it may cause the “module_deinit” callback to not be finished. Unregister the event should fix the problem.