Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!ewout From: ewout@topcat.commodore.com (Ewout Walraven) Newsgroups: comp.sys.amiga.programmer Subject: Re: CreateTask Message-ID: <22173@cbmvax.commodore.com> Date: 5 Jun 91 14:52:56 GMT References: Sender: news@cbmvax.commodore.com Organization: Commodore, West Chester, PA Lines: 15 Jeff_Petkau@tptbbs.UUCP (Jeff Petkau) writes: >This is something I've been wondering about for a while now. In the 1.3 >Includes & AutoDocs, it says of AllocEntry: "If enough memory cannot be >obtained, then the requirements of the allocation that failed is returned and >bit 31 is set." In other words, AllocEntry does _not_ return NULL on >failure, and any code that assumes it does is in ghastly trouble when memory >gets low. But in 1.3 Libraries & Devices, and in all the compiler libraries >I've bothered to look at, CreateTask() does this very thing. So: is >AllocEntry() misdocumented (after all, the documented behaviour is pretty >damned silly), or has CreateTask() been broken in every single OS release to >date, or am I just very confused, or what? CreateTask() has been broken in every release of amiga.lib (and compiler vendor versions as far as we know). It was fixed a couple of weeks ago.