[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 04:25:41PM +1000, Brian May wrote:

> List *list = [...orbit call...]
> for (each item in list) {
>   Value &value = list[x];
>   save(&value);
> }
> free(list)

Forgive me if I'm missing the point, but shouldn't you be using
new/delete if you are writing in C++? Since they are language
constructs rather than functions, I imagine it would be much
harder for a memory debugger to keep track of however.

-- 
Jon Dowland



Reply to: