🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10689

Re: CloseFonts() problems

#10689
From: Ali T. Ozer
Date: Fri, 23 Dec 1988 15:56
16 lines
972 bytes
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
Technical Details
Message-ID: <5783@polya.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!gatech!purdue!decwrl!labrea!polya!ali
References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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