This function forces garbage collection to help ensure as much memory as necessary is returned. It's just a wrapper to gc() that allows multiple-calls and leads to more readable code.
Usage
GarbageCollect(x);
Arguments
x
Number of iterations of gc() to run, defaults to nine