New/Delete...New[]/Delete[]

The Partridge Family were neither partridges nor a family. Discuss.
albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: New/Delete...New[]/Delete[]

Post by albinopapa » July 10th, 2017, 6:01 am

Ha, wish I new that way back when I used new/delete. I grew so tired of typing those three lines of code for all my dynamically allocated pointers. I guess it's only necessary for the COM stuff since you have to call a Release function on the pointer before setting to null.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply