StuC #1 Actually, you could call the ExitProcess(uExitCode) Win32 function (I'm sure there are equivalents for Linux/Mac).It's declared in Kernel32.dllCheers,Stu