all you need to know is:
1) if malloc/new(nothrow) returns NULL, memory allocation failed, pointer points nowhere.
2) for every successful new/malloc you should eventually call a delete/free
If you aren't going to do any class allocation programming in c++, use malloc and free, the will make your life easier. there is no free/free crap, like with c++ delete
Last edited by karlan; 11-04-2004 at 09:42 PM.