M
modemer
What do you mean "doesn't work"?
If you mean that the allocated memory can't be freed every time in a loop, I
guess your coding has some problem to forget free the array.
Memory (including array) could be allocated(new or malloc) in one place, and
freed in other place because it's located in heap.
If you mean that the allocated memory can't be freed every time in a loop, I
guess your coding has some problem to forget free the array.
Memory (including array) could be allocated(new or malloc) in one place, and
freed in other place because it's located in heap.