Release
This command sends memory variables into oblivion, freeing up the memory they occupy.
Usage |
RELEASE ALL [ EXTENDED | LIKE Skeleton | EXCEPT Skeleton ] RELEASE MemvarList |
The EXTENDED, LIKE and EXCEPT clauses don't much like each other. Only the first one you specify is honored. You can't RELEASE ALL EXTENDED LIKE hack*. This limit doesn't bother us that much because we rarely, if ever, use public variables in programs. This limit applies even when you're not dealing with public variables. You can't RELEASE ALL LIKE n* EXCEPT nCount, which is a shame. However, it's not the behavior that really bothers us. After all, it is documented that way. What makes this a bug in our eyes is that it doesn't tell you it's ignoring you. |
Example |
NOTE: This only works as a program, not if the commands ; are typed in from the command window. LOCAL a1, a2, a3, b1, b2, c1, c2, c3, x PUBLIC a4, b3 * Now do something with them RELEASE ALL LIKE b* DISPLAY MEMORY && b1 and b2 are gone; b3 is not RELEASE ALL EXTENDED DISPLAY MEMORY && all gone |
See Also |