For a very long time I have had a problem with my app using too much virtual memory (VM). After much testing I find that when the app runs a zero divide it uses page file space wich controls VM. I have many zero devides in the many calculations the program makes. All work fine but I'd like to reset the page files to a lower number after the zero divide runs so as to prevent running out of VM. I know I can set a "what if" clause to stop running the zero devide calc but toooo much code to go through. Any function or suggestions on how to solve this with out have to find the may zero devides and going with the "what if" clauses. Looking for code that releases the number of page files used. Help.