home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / hypercar / 2908 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.4 KB

  1. Path: sparky!uunet!olivea!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
  2. From: jpugh@apple.com (Jon Pugh)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: Determining Hypercard's Memory Partition
  5. Message-ID: <jpugh-280792182741@90.20.3.221>
  6. Date: 29 Jul 92 01:34:29 GMT
  7. References: <1992Jul24.184603.6513@utkux1.utk.edu>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.hypercard
  10. Organization: Apple Computer, Inc.
  11. Lines: 29
  12.  
  13. In article <1992Jul24.184603.6513@utkux1.utk.edu>, danny@utkux1.utk.edu
  14. (Danny W. McCampbell) wrote:
  15. > Hi.  I would like to examine Hypercards set memory partition
  16. > so I can see if there is enough available memory for my
  17. > stack to work properly.  Could some kind soul tell me how
  18. > to do this.
  19. > I looked at the Hypertalk Help Stack I had and it said to
  20. > use  heapSpace() but I cannot get it to work.
  21. > My code is:
  22. > get heapSpace()
  23. > if it < 500 then ....
  24.  
  25. heapSpace() returns bytes.  I assume you meant 500K, not the 500 bytes used
  26. in your script...
  27.  
  28. In addition, the heapSpace returns the amount of free memory, not the
  29. Finder
  30. partition.  This is better anyways since you don't want to mess with the 
  31. partition, but simply whine if there isn't enough memory available.
  32.  
  33. As far as I know, there isn't a way to get the actual partition size. Of 
  34. course, I could be wrong, and there always could be an XFCN that does this,
  35. but I haven't seen it.
  36.  
  37. Jon
  38.