rs4u#@ANDREW.CMU.EDU.UUCP (03/30/87)
While I haven't dealt with QuickDraw, I too check my error returns and so forth, but I believe that the best cure is *prevention*. Every so often, check the amount of available memory. (I do it before the user opens a file or DA, for example). If there's less than a certain amount (say, 8K) available, display an alert telling the user that there's not much memory available. This generally is safer than having to deal with error retrusn on an emergency basis, or handling the unpredictable results when you *do* run out of memory. While QuickDraw doesn't return error codes, it does use the Memory Manager calls (for handling RgnHandles and so forth), so by checking MemError, you should be able to figure out what's going on... --Rich