home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
- Subject: Re: Thanks (Re message questions)
- Message-ID: <1993Jan9.223230.20384@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <93009.090120REE700A@MAINE.MAINE.EDU>
- Date: Sat, 9 Jan 1993 22:32:30 GMT
- Lines: 36
-
- In <93009.090120REE700A@MAINE.MAINE.EDU> <REE700A@MAINE.MAINE.EDU> writes:
-
- > It looks like the Mac will allow me to allocate my memory 5-10KB
- >at a time and combine the new and old block to a contiguous combined
- >block. This eliminates the principal source of Win 3.x crashes -
-
- Hmm. Not really, only something that might look at it. What you
- do instead is extend one of the blocks and copy the contents of
- the other block into the extended area.
-
- Why not allocate all the memory at the same time? That's MUCH
- faster!
-
- >excessive numbers of handles (sys heap full), since I'll never have
- >more than two handles to my data block!
-
- The Mac creates new master blocks for handles when it needs to,
- and you can also call MoreMasters at startup to create a new
- master pointer block. Repeat as needed. Oh, and Mac handles are
- not usually system resources, unless you allocate the memory
- out of the system heap (purely optional thing to do!)
-
- >In particular, scroll tab "drag & drops", page moves and line moves
- >are all automatically generated system messages.
- > But then again, I can write the filter routine once and use it in all
- >of my future app's, now can't I?
-
- Yes. Better yet, use a decent class library, such as the Think
- Class Library.
-
- > Again, thanks. I should be getting the compiler this week...
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- NCC-1701
-