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.
Peter
--
Dr Peter Brett <peter.br...@livecode.com>
LiveCode Technical Project Manager
LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode