Good day! I would like to know how to clean up a complex allocation such as an array of arrays if you don't want to push it in the cleanup stack. My program always has leaks when closed.
e.g. TReal32* *something = (TReal32**) User::AllocL(number1*sizeof(TReal32));
and then
for (i = 0; i < number; i++)
something[i] = (TReal32*) User::AllocL(number2*sizeof(TReal32));
I know that for an array, we use delete []array_name; right? Please help. Thanks.


Reply With Quote

