Qlib can only claim 512K of heap, confirmed by the STATS.
Err, no. The 32 MB are definitely on the heap.
I tweaked your program a bit, disregarding what you tried to do for now. The called Proc returns with a new dimension value and the reDIM is done within the P loop. This behaves differently!
VERY strange!
After the Inkey$, STATS reports: "Data: 524288 0 0 Stack: 800 172"
WHat about looking at the mem used when the prog is waiting for the inkey (with the QPAC jobs menu?)
Before clicking STATS, Qpac2's JOBS reports: "memory used: 761680" A much more sensible value.
Yes. Wolfgang _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm