Initializing dynamic memory based off of a parameter #2721
Answered
by
timcanham
zimri-leisher
asked this question in
Q&A
-
I have a component in which I want to create a heap array of a size defined in a parameter. Because heap memory allocation should be kept to initialization, I want this to happen as soon as possible after parameters are loaded from the file. |
Beta Was this translation helpful? Give feedback.
Answered by
timcanham
May 10, 2024
Replies: 1 comment 1 reply
-
I would do it the exact same way for what it's worth. After |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zimri-leisher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would do it the exact same way for what it's worth. After
loadParameters()
but before the software starts cycling.