I am currently writing an application that opens a debug window during the runtime. With the application, then window would be opened using the command AllocConsole. The only issue is if the user closes the debug window, the entire application closes. Is there any way I can create a console that will not cause the Win32 API window to close?