home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15109 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.1 KB  |  48 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!rpi!rs6110.ecs.rpi.edu!johnsd2
  3. From: johnsd2@rs6110.ecs.rpi.edu (Daniel Norman Johnson)
  4. Subject: Re: INIT Idea/Request
  5. Message-ID: <bq3yq1+@rpi.edu>
  6. Keywords: INIT, NewHandle, Temporary Memory, Multifinder Memory
  7. Nntp-Posting-Host: rs6110.ecs.rpi.edu
  8. Reply-To: johnsd2@rpi.edu
  9. Organization: Rensselaer Polytechnic Institute, Troy, NY.
  10. References: <fd3yyt@rpi.edu> <t7qnaga.gurgle@netcom.com>
  11. Date: Tue, 8 Sep 1992 01:33:54 GMT
  12. Lines: 34
  13.  
  14. In article <t7qnaga.gurgle@netcom.com>, gurgle@netcom.com (Pete Gontier) writes:
  15. |> johnsd2@jec324.its.rpi.edu (Daniel Norman Johnson) writes:
  16. |> 
  17. |> >It occurs to me that it would be quite neat (to say the least) to get
  18. |> >rid of this memory zone stuff in the Macintosh by making NewHandle
  19. |> >act like TempNewHandle. Or more precisely, to make any call to NewHandle
  20. |> >result in a call to TempNewHandle, and if that fails, a normal call
  21. |> >to NewHandle.
  22. |> 
  23. |> This was discussed at length some months ago. Some guy who was Smarter
  24. |> Than All the Rest of Us Put Together pointed out that this was going
  25. |> to make some existing applications go crazy. Some do brilliant things
  26. |> like figure out how much memory is available to them and then allocate
  27. |> it all in one big block and do their own allocation schemes within that
  28. |> block. MacPaint 2 is one that springs to mind. Or perhaps MacWrite II.
  29. |> One of those.
  30.  
  31. Why would this cause a problem? Sounds to me like it calls some Mem Manager
  32. routine to find out how much memory is in its zone, then allocates a block
  33. about that big. Is this not what you are saying?
  34.  
  35. All taht would imply is that you ought to try to NewHandle before
  36. you TempNewHandle, or some such thing like that, so this allocation
  37. would (if possible) be in the app's zone instead of in temp memory
  38. (where it could get in the way)
  39.  
  40. At the worst this just means there needs to be a mechanism for
  41. exceptions to the new memory-allocation arrangement, no?
  42. -- 
  43.             - Dan Johnson
  44. And God said "Jeeze, this is dull"... and it *WAS* dull. Genesis 0:0
  45.  
  46. These opinions have had all identifiying marks removed, and are untraceable.
  47. You'll never know whose they are.
  48.