alemrantareq wrote:we all know livecode uses windows paging file (virtual memory) to store the variable data we use in our scripts...
Do we? How are you observing that?
Normally VM is managed by the OS rather than an application. How large is your variable that it needs to dip into swap? How much RAM is installed on your system?
As far as general memory usage, if you have, say, 1 MB of data in a variable, and you replace that with 0 bytes (empty), you should see a reduction of memory allocation.
There is some modest overhead in maintaining the variable itself, but it's just a few bytes.
In some cases it may require the engine to get to idle before you'll see recovered memory.
Can you tell us a bit more about what your script is doing, and how you're measuring its RAM use?