>MSDN says this. Interrupt the running code or wait until it completes before clearing memory.
>
>How do I interrupt the running code then?
CANCEL
Commands like CLEAR MEMORY, CLEAR ALL, and CLOSE ALL can be used close to the startup of your system, or at the end, but not in the middle of it, once it is running, because there are too many side effects. For example, CLEAR MEMORY will clear all variables; most likely, some programs are still using those variables.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)