Record seem to be not fully copied when passed to external C function #8849
Labels
COMP/OMC/Runtime
Issues and pull requests related to the runtime for OMC (not simulation runtime).
Milestone
Description
The model below uses a C function to print the value of a record. The first element of the record is printed correctly, but the second element is incorrectly 0. It looks like the value is not set when passing the record to the C function.
Steps to Reproduce
Run the model:
using the C function
Expected Behavior
i
andj
should each have the same value, butmyRecord->j
is0
. The console output isVersion and OS
Additional Context
The model gives the following compile time warning which would be good to correct as well, assuming my code is correct:
The text was updated successfully, but these errors were encountered: