Path: utzoo!utgpu!watmath!clyde!att!alberta!ubc-cs!uw-beaver!cornell!rochester!rutgers!apple!well!ewhac From: ewhac@well.UUCP (Leo L. Schwab) Newsgroups: comp.sys.amiga.tech Subject: Re: CloseFonts() problems Message-ID: <10119@well.UUCP> Date: 25 Dec 88 09:45:19 GMT References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <5783@polya.Stanford.EDU> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Lt. Col. Oliver North, Overseas Shipping and Receiving. Lines: 24 Quote: "Mr. Spock is on his fanny, sir. Reports heavy damage." -- Hodgepodge In article <5783@polya.Stanford.EDU> aozer@NeXT.com (Ali Ozer) writes: >In article <10097@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: >> AllocMem (4000000000L, NULL); >> >> This will always fail [ ... ] > >Just in case that request should succeed, you should do > > if (tmp = AllocMem(4000000000L, NULL)) FreeMem (tmp, NULL) > >While you're dreaming, you might as well do it all the way! May as well do it right, too: if (tmp = AllocMem (4000000000L, NULL)) { puts ("Don't worry, you have *plenty* of memory."); FreeMem (tmp, 4000000000L); } /* You forgot ^^^^^^^^^^^ that */ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU \_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor