Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RELEASE memory - vs - reDIMENSION
Message
 
To
12/08/2002 09:48:34
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00688564
Message ID:
00691348
Views:
23
HI Patrick,

>question: when you reduce the array length via the DIMENSION
>statement, is that memory freed up as effectively as
>if i RELEASE the array entirely and recreate it ?

VFP uses a handle based memory which can be moved around if needed. Therefore memory fragmentation is not a big issue in VFP. From the amount of memory allocated, it doesn't make a difference if you RELEASE or DIMENSION. Performancewise I haven't tested this, but I'd guess that DIMENSION is faster. We talk about times here that are insignificant for most applications, though. If you fear that you might run into performance issue due to memory fragmentation, you can force a garbage collection with SYS(1104).

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform