Skip to Content
Object-Oriented Design Heuristics
book

Object-Oriented Design Heuristics

by Arthur J. Riel
April 1996
Intermediate to advanced
400 pages
9h 31m
English
Addison-Wesley Professional
Content preview from Object-Oriented Design Heuristics

Appendix B. The Prevention of Memory Leakage

One of the most dangerous pitfalls affecting the C++ community is that of memory leakage, or the unintentional nondeletion of dynamically allocated memory. A system inflicted with this problem will run correctly for some period of time, often weeks, with no discernable problem. It will then “seize up,” that is, run out of heap space for no apparent reason. The operator typically reboots the application, which again runs problem-free. The danger of this situation is that it is not caught at compile, link, or test-run time. It is detected only after the product has been shipped to a number of clients.

While memory leakage has occurred in standard C applications, it is typically introduced into that environment ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition

Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition

Alan Shalloway, James R. Trott
API Design Patterns

API Design Patterns

John J. Geewax
Refactoring to Patterns

Refactoring to Patterns

Joshua Kerievsky

Publisher Resources

ISBN: 020163385XPurchase book