PDA

View Full Version : Using Tables and Memory resources handling


SUF6NEWBIE
04-18-2004, 06:51 PM
Greetings fellow travellers,

How does the 'clearing' of 'filled tables work when the 'function
has completed. Do I need to do something like 'clear-empty' the
tables, if so ????. My interest is basically for low-end systems,
low memory etc. Or should I not bother...

My App. has AMS handle memory in the 'windows settings'

any suggestions.. tks

addn: is the memory space released back to the system immediatley
or only on APP EXIT or system Restart.

SUF6NEWBIE
04-19-2004, 12:44 AM
Hmmm..wonder if my brain works in a similar fashion..

feedback anyone ?

Worm
04-19-2004, 05:27 AM
If you mean you want to release the memory used by the table you have a couple options.

1. Declare the variable/table as local (i.e. local tblFiles) Using local keeps the contents of the varibale "alive" for only the event/function it is in.

2. To release the variable, set it to nil

tblFiles = nil;





Hmmm..wonder if my brain works in a similar fashion..

feedback anyone ?

SUF6NEWBIE
04-19-2004, 01:11 PM
tks Worm....I'll try the options on the lowend test machine
I'm trying not to place a 'minimum memory requirement'
for my APP. I'll keep your advice in mind when building
routines..