anybody know how to see the ram condition when using "new".

I use "new" to allocate dynamic memories. I wanna know if the "delete" deleted the memories allocated. How can I make it?
Just use delete. It will delete memory. If you are not sure, you can use smart pointers, and if you want to check if they are working as they should, check profiler.

Mind that memory leaks are mainly to be considered while program runs, because after program quits, OS (usually) will clear memory you used.
thank you for reply. but it seem that only cpu condition be analysed, no memory condition - -?
Topic archived. No new replies allowed.