home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
- From: jpugh@apple.com (Jon Pugh)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Determining Hypercard's Memory Partition
- Message-ID: <jpugh-280792182741@90.20.3.221>
- Date: 29 Jul 92 01:34:29 GMT
- References: <1992Jul24.184603.6513@utkux1.utk.edu>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.hypercard
- Organization: Apple Computer, Inc.
- Lines: 29
-
- In article <1992Jul24.184603.6513@utkux1.utk.edu>, danny@utkux1.utk.edu
- (Danny W. McCampbell) wrote:
- >
- > Hi. I would like to examine Hypercards set memory partition
- > so I can see if there is enough available memory for my
- > stack to work properly. Could some kind soul tell me how
- > to do this.
- >
- > I looked at the Hypertalk Help Stack I had and it said to
- > use heapSpace() but I cannot get it to work.
- >
- > My code is:
- >
- > get heapSpace()
- > if it < 500 then ....
-
- heapSpace() returns bytes. I assume you meant 500K, not the 500 bytes used
- in your script...
-
- In addition, the heapSpace returns the amount of free memory, not the
- Finder
- partition. This is better anyways since you don't want to mess with the
- partition, but simply whine if there isn't enough memory available.
-
- As far as I know, there isn't a way to get the actual partition size. Of
- course, I could be wrong, and there always could be an XFCN that does this,
- but I haven't seen it.
-
- Jon
-