Re: Can't use TComponent in thread object?
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 10:04:38 -0600
brett wrote:
I found out why the thread wasn't executing. The Execute() method
was being called but then I quickly exited from it. In the thread
class, after the FTP object called its Receive() method to download,
I quickly destroyed the FTP object. That's why the exit was so fast.
I was hoping it would block with Resume() but I guess it didn't.
The whole point of Resume is that the call *doesn't* block. Threads would be useless if they blocked.
This means I need to be sure the FTP object doesn't leak after the
thread is destroyed.
The thread should create and destroy the FTP object itself.
--
Rob
.
- References:
- Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Jamie
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Nicholas Sherlock
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: brett
- Can't use TComponent in thread object?
- Prev by Date: Re: More accurate Timerevent
- Next by Date: Re: Delphi & TablePC
- Previous by thread: Re: Can't use TComponent in thread object?
- Next by thread: Re: Can't use TComponent in thread object?
- Index(es):