Open-Systems-Pharmacology / OSPSuite.SimModel

Calculation engine for models built with PK-Sim® or MoBi®
Other
4 stars 3 forks source link

Wrong Pinvoke signature (results in crash in case of solver warnings) #120

Closed Yuri05 closed 3 years ago

Yuri05 commented 3 years ago

If there are solver warnings: error message below comes grafik

The reason is: PInvoke signature of FillSolverWarnings does not match the exported function: https://github.com/Open-Systems-Pharmacology/OSPSuite.SimModel/blob/08fb0d56cc0ca017f0491ff615267ace2f69d07a/src/OSPSuite.SimModel/Simulation.cs#L177-L179

https://github.com/Open-Systems-Pharmacology/OSPSuite.SimModel/blob/08fb0d56cc0ca017f0491ff615267ace2f69d07a/src/OSPSuite.SimModelNative/include/SimModel/PInvokeSimulation.h#L135

Yuri05 commented 3 years ago

@AndreDlm FYI

PavelBal commented 3 years ago

I guess it relates to https://github.com/Open-Systems-Pharmacology/MoBi/issues/506 (or vice versa).

Yuri05 commented 3 years ago

Yes, this must be the reason.