Ok, thanks. Not too obvious from help.

On Wednesday 06 December 2000 20:35, Myles Penlington wrote:
> No good.
> Once a thread has executed (or left it's execute method) it is dead and can
> no longer be used again. ie Must be freed or re-created.
>
> If this is not what you want, then you must have your own loop inside the
> execute method, and it needs to terminate when instructed.
> Your thread loop needs to wait (for something - signal/event/message loop)
> or Sleep for a specified time and then wake up and do something.
>
> Myles.
>
> > -----Original Message-----
> > From: Juan Manuel Gomez Ramos [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 07, 2000 2:00 PM
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: thread problem again
> >
> >
> >   Hi there:
> >
> >   I'm on a MDI app with a thread instance of the same class
> > on each child
> > window. My problem is that every instance is executed only
> > once. I placed a
> > breakpoint in the Execute method but is only reached the
> > first time the
> > thread is executed. Just openned child windows, execute its
> > thread only once
> > too. The FreeOnTerminate property is set to FALSE. I suppose
> > the thread can
> > be Executed several times; if the Execute method finished by
> > himself, another
> > Resume will call it again. What could be missing? Are there
> > any properties to
> > be set for the thread to be executed again? I mean, without
> > having to Free it
> > and re-Create it. Please, any comments would be good. TIA.
> >
> >   Regards, Juanma.
> >
> >
> > --
> >   Juan Manuel Gomez Ramos
> >   Computer Science student at Havana University
> >   Paraglider pilot and RadioHam (CM9BPG)
> >   http://cubairsports.itgo.com = http://www.geocities.com/cubairsports
> >
> >   email:<[EMAIL PROTECTED]>         eFax: +1-707-313-0329 (USA)
> >         <[EMAIL PROTECTED]>         +44-870-125-4936 (UK)
> >         <[EMAIL PROTECTED]>
> >   ICQ:  62091995
> >   http://chronos.itgo.com
> >
> >
> > --------------------------------------------------------------
> > -------------
> >     New Zealand Delphi Users group - Delphi List -
> > [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
>
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

-- 
  Juan Manuel Gomez Ramos
  Computer Science student at Havana University
  Paraglider pilot and RadioHam (CM9BPG)
  http://cubairsports.itgo.com = http://www.geocities.com/cubairsports

  email:<[EMAIL PROTECTED]>         eFax: +1-707-313-0329 (USA) 
        <[EMAIL PROTECTED]>         +44-870-125-4936 (UK)
        <[EMAIL PROTECTED]>
  ICQ:  62091995
  http://chronos.itgo.com


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to