O'Reilly: C++ Memory Management: From Fear to Triumph | Linux Today

O’Reilly: C++ Memory Management: From Fear to Triumph

Written By
Web Webster
Web Webster
May 14, 2003

“Everyone knows that memory management is a difficult and
dangerous chore in C++. This series of three articles will show you
that the conventional wisdom is not true. When approached
correctly, C++’s seemingly archaic memory-management scheme
actually provides an opportunity to create spectacular
programs–programs that would not be possible with more modern
languages that handle memory automatically.

“This article, part one in a series, discusses C++ in the
context of several other popular languages. It also describes the
kinds of memory errors that can occur in C++ programs. The most
common specific errors are then presented in a set of tables, for
easy reference when developing your own code.

“Subsequent articles in the series will demonstrate a different
way of thinking about memory management–not as a dreaded danger to
be faced with stoic resolve, but as a powerful and subtle tool for
improving your work. In many situations, the C++ approach to memory
resources is not cause to avoid the language, but actually the
reason why it should be used…!”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.