Contents Up Previous Next

Reference-counting

Usually avoided (even that featured by wxObject), mainly because it is hard to track (from looking the sourc code) when object is deleted and by whom. When object must be shered by multiple objects, there is always one which "owns" the object and is responsible for releasing its memory. That can be determined by looking at destructors of possible owners.