On 12/28/06, Nico Heinze <[EMAIL PROTECTED]> wrote:
4) I know that many people don't trust my words here, but the result of mixing new/delete with malloc/calloc/free is compiler and runtime specific; sometimes it works without hassle, in other cases it can easily kill your server applications without any chance to find out why.
It is perfectly Legal[tm] to have both new/delete and malloc/free in the same program. What is undefined is deleting a malloced pointer and freeing a newed pointer. (And incidentally, and slightly OT, is delete[]ing a newed pointer and deleting a new[]ed pointer) -- PJH #713059 +(1255)- [X] <SaintAlvus> Does the name Doctor Pavlov ring a bell?
