> You have to call FreeConsole() to release the console - after that you should be able to close the window. I referred to a situation when user clicks on [x] button on a console window forcing it to close -- that crashes the caller, VFP application.