Path: utzoo!mnetor!uunet!husc6!rutgers!rochester!ur-tut!dpvc From: dpvc@ur-tut (Davide P. Cervone) Newsgroups: comp.sys.amiga.tech Subject: Re: Memory Types??? Message-ID: <1874@ur-tut.UUCP> Date: 20 Apr 88 16:57:28 GMT References: <8804182055.AA15423@cory.Berkeley.EDU> <2187@antique.UUCP> Reply-To: dpvc@tut.cc.rochester.edu.UUCP (Davide P. Cervone) Organization: Univ. of Rochester Computing Center Lines: 22 In article <2187@antique.UUCP> cjp@vax135.UUCP (Charles Poirier) writes: >In article <8804182055.AA15423@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU.UUCP writes: >| ptr = AllocMem(bytes, MEMF_PUBLIC|MEMF_FAST); > >Huh? What I understood was that this construct gives the same result >as the request below without MEMF_FAST, giving CHIP when insufficient >FAST is available. No, Matt was right, the above AllocMem FAILS if there is no FAST memory available. It does NOT return CHIP memory. I've tried it, it fails. ptr = AllocMem(bytes,0L); gets you FAST memory if it exists, and CHIP if not. Matt's third example does this as well, but its memory is PUBLIC, which seems to have confused some people. You don't need thte MEMF_PUBLIC bit, but it doesn't hurt, either. Davide P. Cervone dpvc@tut.cc.rochester.edu dpvc@ur-tut.UUCP DPVC@UORDBV.BITNET