Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!bbn.com!nic!bunny!bunny.gte.com!CAH0 From: CAH0@bunny.gte.com (Chuck Hoffman) Newsgroups: comp.sys.mac.programmer Subject: THINK C and Mac Message-ID: <9917@bunny.GTE.COM> Date: 19 Oct 90 19:15:31 GMT Sender: news@GTE.COM Organization: GTE Laboratories, Inc. Lines: 27 I'm using THINK C to open a resource on a file. When the resource fork is large, as on an application program file, I get a system error code -108, memFullErr, Not enough memory in heap zone. When I try to do a printf on a subsequent statement, everything stops. The code looks like this: intmyFileID; /* returned ID number of file */ intResErrorNo; /* return code from error routine*/ Str255 myfilnam; /* file name in Pascal format */ . . . myFileID = OpenResFile (myfilnam); /* open the resource file*/ ResErrorNo = ResError(); PtoCstr((char *) myfilnam); /* convert to C string for display*/ printf("\nThe file name is: %s",myfilnam); *** bomb *** Can anyone explain / help? I'm new to Mac programming. -Chuck - Chuck Hoffman, GTE Laboratories, Inc. | I'm not sure why we're here, cah0@bunny.gte.com | but I am sure that while we're Telephone (U.S.A.) 617-466-2131 | here, we're supposed to help GTE VoiceNet: 679-2131 | each other. GTE Telemail: C.HOFFMAN |