Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!psuvax1!vu-vlsi!cbmvax!higgin From: higgin@cbmvax.UUCP (Paul Higginbottom SALES) Newsgroups: comp.sys.amiga Subject: Re: AllocMem() with 16-bit Manx Message-ID: <2291@cbmvax.UUCP> Date: Wed, 2-Sep-87 15:47:09 EDT Article-I.D.: cbmvax.2291 Posted: Wed Sep 2 15:47:09 1987 Date-Received: Sat, 5-Sep-87 07:28:10 EDT References: <872@percival.UUCP> Organization: Commodore Technology, West Chester, PA Lines: 13 in article <872@percival.UUCP>, baer@percival.UUCP (Ken Baer) says: > I have been working on a program that uses AllocMem(), and I can't get it > to work with 16-bit Manx C. ... > SpriteHead = (struct VSprite *)AllocMem(sizeof(struct VSprite), MEMF_PUBLIC | > MEMF_CLEAR); ^^^^^^ |||||| The problem is that you're not declaring (casting) the number of bytes you wish to allocate as a long integer (as AllocMem expects). Simply insert "(long)" before "sizeof". > -Ken Baer. Paul.