OnTimer runs in the same thread.
ShowModal creates a new event loop, that means all events are still
triggered, and thus all timers still work. The main loop in TApplication is
stopped and thus the application does not terminate before the modal form
stops.

Mattias

--
>
> Showmodal doesn't mean that all events are blocked. It only means that
> all other forms are disabled and that your code will continue after you
> closed the modal form.
> All messages are handled (in the showmodal message loop)
>
> Marc


This is obvious. Thanks for the explanation.

bartek

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to