On Tue, 12 Oct 2010, José Mejuto wrote:
Hello Lazarus-List,
Tuesday, October 12, 2010, 1:06:09 PM, you wrote:
MVC> But as documented, I think I demonstrated that the FPC RTL works correct,
MVC> and the programs are simply wrong.
MVC> I will see about changing the specs.
With the change, what happends if the user press the "X" to close
window while the code is in a WaitFor ? Message will be processed and
window destroyed ?
That depends on what happens in synchronize, of course.
The change as planned will be the following:
If the main thread does a waitfor() in a loop, it will be with a timeout.
If timeout is reached, checksynchronize() will be called.
I will see about adding a hook mechanism for this, in which
'processmessages' or so can be done.
Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus