Peter TB Brett peter.brett at livecode.com
Fri Jun 10 17:41:38 CEST 2016

On 10/06/2016 16:31, Richard Gaskin wrote:

> From time to time it's useful to know how much RAM may be available to
> an application, to make decisions about loading data.

No, it isn't useful.  Don't do this.

At the very best, you'll have a Time-of-check-to-time-of-use error (i.e. 
you check a condition time X, and do something that assumes the 
condition at time Y, but in the intervening time something happens 
elsewhere in the system that invalidates the condition).  And on most 
operating systems, the result will be total lies.

Just go ahead and load the data.  If it fails, then try a smaller chunk.


Dr Peter Brett <peter.brett at livecode.com>
LiveCode Technical Project Manager

LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/

More information about the use-livecode mailing list