Hi,
As mentioned in the title. We have set the heap in the project settings to 0. We now integrated a stack which uses calloc. My
Question is what happens in this case. I get no error. What is the behavior in this case of the system?
Kind Regards
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
As mentioned in the title. We have set the heap in the project settings to 0. We now integrated a stack which uses calloc. My
Question is what happens in this case. I get no error. What is the behavior in this case of the system?
Kind Regards
We now integrated a stack which uses calloc
Does the stack check the return value from calloc()?
I would expect calloc() to return a NULL pointer if the heap size has been set in the project settings to 0.
The calloc works fine. Wich I did not expect.
Hi,
Please can you mention which stack you added, it is possible that the stack itself has some heap allocation requirement. Not sure about this. But can you elaborate on which stack was added and if possible, which examples in the sdk the project is based on?
Regards,
Sid