Path: utzoo!attcan!uunet!super!udel!gatech!purdue!decwrl!labrea!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.amiga.tech Subject: Re: CloseFonts() problems Message-ID: <5783@polya.Stanford.EDU> Date: 23 Dec 88 15:56:36 GMT References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> Reply-To: aozer@NeXT.com (Ali Ozer) Organization: . Lines: 16 In article <10097@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: > AllocMem (4000000000L, NULL); > > This will always fail (unless you actually happen to *have* four >gigabytes of RAM hanging around (or if AmigaDOS/Kickstart ever goes >virtual)). Just in case that request should succeed, you should do if (tmp = AllocMem(4000000000L, NULL)) FreeMem (tmp, NULL) Otherwise you've just blasted away 4 gigabytes of memory without giving it back. Tsk, tsk, Leo. 8-) While you're dreaming, you might as well do it all the way! Ali Ozer, aozer@NeXT.com