Cure for hard errors
  1. Pointers transparently managed.
  2. Intrusive data structures based on linked lists.
  3. All lists implemented as rings.
Rules of the game:
a) All pointers initialized as NULL.
b) NULL pointers mark a disconnected object.
c) Objects must be disconnected prior to being connected or destroyed.
  • Simple to do, improves code quality and debugging.
  • Can be done only for intrusive data structures.