home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21091 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.8 KB  |  49 lines

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