Sorry I meant SetCancel(.F.)

http://msdn.microsoft.com/en-us/library/ms683242%28VS.85%29.aspx

"
An application-defined function used with the SetConsoleCtrlHandler function. A console process uses this function to handle control signals received by the process. When the signal is received, the system creates a new thread in the process to execute the function.
"

PROCEDURE Main()

   SetCancel(.F.)
   ? "Click [X] Not close windows"
   Wait
   RETURN

Now it's happening that you are introduced ch = HB_BREAK_FLAG in Inkey Poll, 
keyboard buffer.
Wait ends and the main process is finished so the new thread to execute the 
function is killed before it can complete their work.

--
Xavi
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to