User Tools

Site Tools


overcoming_20the_20memory_20limit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
overcoming_20the_20memory_20limit [2018/03/31 13:19] – external edit 127.0.0.1overcoming_20the_20memory_20limit [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, March 2014//\\ \\  LB Booster's memory limit (versions 2.00 to 2.53) is similar to that of LB 4.04. For example in both cases a numeric array with 8 million elements can be successfully created but one with 10 million elements cannot (LBB reports a **DIM space** error and LB 4.04 reports a **system primitive failed** error).\\ \\  However in LBB there is a simple way of overcoming the limit on the size of an array: use **REDIM** rather than **DIM**! If you use REDIM you can create an array with 100 million elements or more, if you have sufficient RAM:\\  //by Richard Russell, March 2014//\\ \\  LB Booster's memory limit (versions 2.00 to 2.53) is similar to that of LB 4.04. For example in both cases a numeric array with 8 million elements can be successfully created but one with 10 million elements cannot (LBB reports a **DIM space** error and LB 4.04 reports a **system primitive failed** error).\\ \\  However in LBB there is a simple way of overcoming the limit on the size of an array: use **REDIM** rather than **DIM**! If you use REDIM you can create an array with 100 million elements or more, if you have sufficient RAM:\\ 
 +<code lb>
       redim array(100000000)        redim array(100000000) 
 +</code>
 \\  In LBB versions 2.60 and later the memory limit has been raised, to approximately 500 Megabytes. Therefore you can DIM a numeric array up to around 50 million elements without taking special measures. Nevertheless the technique described above still applies - to dimension a larger array use REDIM. The maximum amount of memory available is about 1.5 Gbytes, or the amount of RAM fitted to your PC, whichever is the smaller. \\  In LBB versions 2.60 and later the memory limit has been raised, to approximately 500 Megabytes. Therefore you can DIM a numeric array up to around 50 million elements without taking special measures. Nevertheless the technique described above still applies - to dimension a larger array use REDIM. The maximum amount of memory available is about 1.5 Gbytes, or the amount of RAM fitted to your PC, whichever is the smaller.
overcoming_20the_20memory_20limit.1522502372.txt.gz · Last modified: 2024/01/05 00:17 (external edit)