home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!mips!darwin.sura.net!jvnc.net!yale.edu!think.com!cayman!colin
- From: colin@Cayman.COM (Colin "Atilla" Steele)
- Newsgroups: comp.sys.mac.programmer
- Subject: HELP, PLZ: MPW tool bums out when loading HUGE resource map
- Message-ID: <COLIN.92Aug14091537@wrangel.Cayman.COM>
- Date: 14 Aug 92 13:15:37 GMT
- Sender: news@cayman.COM
- Distribution: comp
- Organization: Cayman Systems Inc., Cambridge, MA
- Lines: 37
- Nntp-Posting-Host: wrangel
-
-
- Greetings, gentle netters.
-
- Yes, here I am, once again groveling at the feet of the collective
- net.godheads, with a prickly problem.
-
- Some of you may remember my posts over the last week or two about
- source code control. Projector is looking like it may be the de facto
- solution. So, I'm trying to compensate for a couple of its
- deficiencies.
-
- To that end, I've written an MPW tool called revinfo, that takes a
- file as an arg, opens the res fork of the file, and looks for a 'ckid'
- resource in that file. If it finds one, it parses the 'ckid' out, and
- prints it in a cute, parsable format.
-
- It works fine, with one small problem. It pukes on my ".proj" file.
- After some investigation, it looks like the problem is that the
- resource map is too big - the file (map) is 2.5 Mb. Since MPW tools
- run in a conjured-up C run-time environment, inside MPW, when the tool
- loads the 2.5 Mb resource map, all hell breaks loose.
-
- So, my question is: "How do I make this work?" My first inclination
- is to find some way of getting a handle to 'ckid' # 128 without
- loading the whole resource map. Is this possible? Using
- SetResLoad(FALSE) will just cause GetResource() to return NIL, right?
-
- That's the only solution my poor brain can come up with, right now.
- Are there other ideas on how to work around this small problem??
-
- If it would help, I'll post the code...
- --
-
-
- ------------------------------------------------------------------------------
- Colin Steele | Cayman Systems, 26 Landsdowne St., Cambridge, MA 02139
- colin@cayman.com | (617) 494-1916 x209 | applelink D0523 | Fax (617) 494-9270
-