[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: memory debugging and C++ (program keeps crashing)



On Sun, Sep 29, 2002 at 10:13:57PM -0700, Marc Singer wrote:
> Indeed.  I mean that the memory is allocated and freed through the
> same mechanisms.  Unlike other operating systems, there is usually
> only one heap per process.  In the absence of constructors and
> destructors, the calls are interchangeable.

Emphasizing that this isn't portable, may not even work on later versions
of g++, and probably won't work at all for delete[].

(This was implied, and may be obvious to most of us, but should be said
explicitly to avoid confusion.)

-- 
Glenn Maynard



Reply to: