malloc or new?
Does "work" mean ''not crash'' or ''not leak''? It might not crash, but it''s likely leaking...
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" King
Game Programmer: DigiPen
www.mpogd.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement