Second USENIX Conference on Object-Oriented Technologies (COOTS), 1996
Pattern Languages for Handling C++ Resources in an Exception-Safe Way
Harald M. M|ller
Siemens AG Austria
Abstract
Using exception handling in C++ can lead to severe problems with
dynamic objects and other resources- dangling pointers, memory leaks
etc. By using a small set of patterns (collected into a pattern
language "Ex- ception-safe C++ objects"), these problems can be
avoided. However, it turns out that these pattern make use of
"resource management", which poses a lot of questions in itself. For
the solution of these problems, a second, somewhat larger set of
patterns (collected into a pattern language "Responsibility management
under exception handling") is provided.
|