Re: How do I release memory for arrays that I careated?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Pucca <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Thank you for the reply. My apology that I didn't copy all the
declaration. tBuffer was declared. Thank you.

TCHAR tBuffer[ONE_K];

tBuffer is declared, but it is not allocated on the heap with 'new'. You
cannot delete what you have not allocated in the first place.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.