home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!rpi!uwm.edu!ogicse!das-news.harvard.edu!husc-news.harvard.edu!tara!fry
- From: fry@tara.harvard.edu (David Fry)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: How to save a PICT file?
- Message-ID: <1992Aug30.002216.15223@husc3.harvard.edu>
- Date: 30 Aug 92 04:22:14 GMT
- Article-I.D.: husc3.1992Aug30.002216.15223
- References: <1992Aug26.000749.3750@desire.wright.edu> <zben-280892151439@zben-mac-ii.umd.edu> <1992Aug29.003233.3802@desire.wright.edu>
- Distribution: usa
- Organization: Harvard Math Department
- Lines: 31
- Nntp-Posting-Host: tara.harvard.edu
-
- In article <1992Aug29.003233.3802@desire.wright.edu> jmatthews@desire.wright.edu writes:
- >In article <zben-280892151439@zben-mac-ii.umd.edu>, zben@ni.umd.edu (Charles B. Cranston) writes:
- >> Ahem, wouldn't it be a good idea to lock the handle while writing
- >> it out? I wasn't aware _Write refrained from moving memory. Please
- >> correct me if I'm wrong about this...
- >
- >An excellent question. An expression such as Ptr(picHdl^) creates a
- >copy of a master pointer; the original will change if the block to
- >which it points gets moved. Fortunately, I haven't found _Write on
- >any list of traps that move memory (IM vol I-VI; THINK Reference).
- >
- >I suppose that believing _Write will never move memory in the future
- >is a shade optimistic. I hope the "lock everything" partisans don't
- >don't wind up being too right:-)
-
- I don't think there's any chance that _Write will ever move memory.
- First, they didn't put it on that list so everybody is counting on it not
- moving memory, and _Write is a VERY popular trap call - lots of
- programs would break. Second, if _Write did move memory, lots of
- useful interrupt, VBL, and time manager tasks would break because they
- couldn't communicate with the disk, serial port, or AppleTalk (I think
- that last one is correct). In fact, would AppleTalk work at all?
-
- What are the chances that a future version of the MacOS, or an OS that
- existing Mac programs run on like PowerOpen or Pink, will not have
- relocatable blocks and all of this is moot?
-
- David Fry fry@math.harvard.edu
- Division of Applied Sciences fry@huma1.bitnet
- Harvard University ...!harvard!huma1!fry
- Cambridge, MA 02138
-