Sometimes, when the Internet Explorer or any other application encounters an error, the following error pops up and the application hangs. You cannot even end the task. 'This program cannot be closed. If it is being debugged, please resume it or close the debugger first.' The CreateProcess Windows API function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file. BOOL CreateProcess( LPCWSTR lpszImageName, LPCWSTR lpszCmdLine, LPSECURITY_ATTRIBUTES lpsaProcess, LPSECURITY_ATTRIBUTES lpsaThread, BOOL fInheritHandles, DWORD fdwCreate, LPVOID lpvEnvironment, LPWSTR lpszCurDir, LPSTARTUPINFOW lpsiStartInfo, LPPROCESS_INFORMATION lppiProcInfo ); The fdwCreate has different values. Value Description CREATE_DEFAULT_ERROR_MODE Not supported. CREATE_NEW_CONSOLE The new process has a new console, instead of inheriting the parent's console. This flag cannot be used with the DETACHED_PROCESS flag. CREATE_NEW_PROCESS_GROUP Not supported. CREATE_SEPARATE_WOW_VDM Not supported. CREATE_SHARED_WOW_VDM Not supported. CREATE_SUSPENDED The primary thread of the new process is created in a suspended state, and does not run until the ResumeThread function is called. CREATE_UNICODE_ENVIRONMENT Not supported. DEBUG_PROCESS If this flag is set, the calling process is treated as a debugger, and the new process is a process being debugged. Child processes of the new process are also debugged. The system notifies the debugger of all debug events that occur in the process being debugged. If you create a process with this flag set, only the calling thread (the thread that called CreateProcess) can call the WaitForDebugEvent function. DEBUG_ONLY_THIS_PROCESS If this flag is set, the calling process is treated as a debugger, and the new process is a process being debugged. No child processes of the new process are debugged. The system notifies the debugger of all debug events that occur in the process being debugged. DETACHED_PROCESS Not supported. If the program is executed with fdwCreate as DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS, then if the program comes up with an error it assumes that it has a debugger associated with it.Aashish