Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 9 months ago.
malloc hangs
I'm getting a weird hang on the following line of code:
code
uint32_t* newArr = (uint32_t*)malloc(newSize*4);
where newSize is an int, and in my testing it is almost always 2 when it hangs. Does anybody know what might be causing this or any suggestions on what to try?
Thanks!