|Subject:||Re: Executing a Put, SetEvent not working in thread|
|Posted by:||Jimmy Way (kosstamog…@gmail.com)|
|Date:||Sun, 26 Jun 2005|
Looks like putting the wait in the main VCL thread isn't a good idea it
takes control away from the worker thread. Maybe I need another thread to
wait for the worker thread.
On Mon, 20 Jun 2005 00:48:40 -0700, Jimmy Way <kosstamog…@gmail.com>
> New to Indy and threading...
> What would be a good way to make sure to catch if a IdFTP.put does not
> I would like to check if Put is hung, then terminate the thread that it
> is being executed in.
> My approach was...
> to spawn a thread to do a Put, and then do a Event1.WaitFor(10000) in
> the main thread.
> (In Thread)
> Put(Source, Dest)
> Event1.SetEvent <--- never goes here??
> Instead it times out and the event never gets set and the timer goes off.
> Am I missing some deadlock situation here?
> Thanks for your help,
Using Opera's revolutionary e-mail client:http://www.opera.com/mail/
Executing a Put, SetEvent not working in thread posted by Jimmy Way on Mon, 20 Jun 2005