I have a requirement that needs to be allocated and freed up memory many times. He is currently trying to use the Integrity ARM simulator.
I created two tasks: The first task (encoder): receives video data from the socket and encodes it and sends it to the second task. The second task (decoder): receives data from the encoder and decodes it. In this decoding process, it dynamically allocates memory and, after decoding, frees up memory.
After some temporary decoder task is suspended and the protected memory error cannot be read. How can I solve this problem with dynamic memory? I do not want to use fixed size arrays.
thank
c ++ memory-management dynamic integrity rtos
shalini A Nov 11 '14 at 5:42
source share