Path: utzoo!attcan!uunet!world!decwrl!wuarchive!cs.utexas.edu!rice!uupsi!sunic!lth.se!newsuser From: roland@dna.lth.se (Roland Mansson) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C and Mac Message-ID: <1990Oct20.122825.22763@lth.se> Date: 20 Oct 90 12:28:25 GMT References: <9917@bunny.GTE.COM> Sender: newsuser@lth.se (LTH network news server) Organization: Lund University Computing Center, Sweden Lines: 15 In article <9917@bunny.GTE.COM> CAH0@bunny.gte.com (Chuck Hoffman) writes: >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: > I don't know if this is your problem, but there is a nasty bug with OpenResFile. Check TN 232. Basically, you have to call StripAddress on the pointer to the file name. Not very obvious :-) :-) -- Roland Mansson, Lund University Computing Center, Box 783, S220 07 Lund, Sweden Phone: +46-46107436 Fax: +46-46138225 Bitnet: roland_m@seldc52 Internet: roland.mansson@ldc.lu.se or roland.mansson%ldc.lu.se@uunet.uu.net UUCP: {uunet,mcvax}!sunic!ldc.lu.se!roland.mansson AppleLink: SW0022