Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!mordor!lll-tis!ptsfa!ihnp4!drutx!drune!nick From: nick@drune.UUCP Newsgroups: comp.sys.apple Subject: APW C help needed Message-ID: <729@drune.ATT.COM> Date: Mon, 29-Jun-87 22:58:42 EDT Article-I.D.: drune.729 Posted: Mon Jun 29 22:58:42 1987 Date-Received: Fri, 3-Jul-87 07:13:01 EDT Distribution: comp Organization: AT&T, Denver, CO Lines: 28 Keywords: Newhandle() function HELP!!! I've been working on a little APW C program and have run into a little snag. I'm trying to get the memory manager to give me a new handle but so far I can't get it to work. I think I'm doing things right, but may not understand everything yet. Here's the program segment: handle toolsZeroPage; int myMemoryID; main() { myMemoryID = MMStartup(); toolsZeroPage = Newhandle( 4*256, /* allocate 4 pages */ myMemoryID, /* memory blocks user ID */ $0xC000, /* Attributes */ ptr(0)); /* Start in bank zero */ etc, etc,. } So anyway, I keep getting an error in the Newhandle function. It is suppose to return a handle , for which I have made room. I think my problem is in the last paramter - the pointer. What does new handle expect here??? Any help would be appreciated. Nick Silva