malloc or new?

Started by
10 comments, last by utwo007 22 years, 3 months ago
Does "work" mean ''not crash'' or ''not leak''? It might not crash, but it''s likely leaking...
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
I meant as not leak, but i didn''t test it thoroughly so I could be wrong. That''d be interesting if delete/free was not causing the app to crash, but not freeing the memory. I never mix and match the calls intentionally, I just one day accidently swapped them and it worked. I did some testing and it seemed to work ok, but after i was done messing around I went back to sticking with one set, in this case new and delete. This was using MSVC 6, so it may behave differently using different compilers, or different versions of msvc.

- Kevin "BaShildy" King
Game Programmer: DigiPen
www.mpogd.com
- Kevin "BaShildy" KingGame Programmer: DigiPenwww.mpogd.com

This topic is closed to new replies.

Advertisement