thanks for the quick reply. A little curious on how this works....I have this statement at the beginning of my program, it's the 3rd line of Sub Main() ( right after setting up a logfile). So once this line executes, it will terminate the rest of the app if a higher priority process requests CPU cycles?