stew@endor.UUCP (03/29/87)
Anyone have any suggestions for handling out-of-memory conditions which occur during QuickDraw operations properly? I am already doing things like allocating a buffer which is released by a growZone function and, of course, checking all my memory management functions error returns. Unfortunately, things like UnionRgn will just crash if they run out of memory, and I know of no good way to tell in advance if there is enough memory for them... For example, the Union of two disjoint rectangular regions takes much more memory than the two regions by themselves. I feel that the designers of Quickdraw screwed up in a big way by not returning an error code from these functions. In fact, all drawing routines are potential problems if you are accumulating a picture, region, or polygon... What solutions do other developers use for this problem?