Re: Can't use TComponent in thread object?
- From: "brett" <account@xxxxxxxxx>
- Date: 23 Nov 2006 13:03:33 -0800
If I want to update a label on my form that displays the bytes
downloaded so far, how is that done at a conceptual level? I know what
the code will look like to make all of that happen but conceptually, I
keep running into problems - namely circular references.
Here's what I started doing:
Form1 uses FTPthread
....and creates TFTPthread
TFTPthread uses TProgressthread
....and creates TProgressthread
TProgressthread uses Form1
....and gets a reference to a string property on Form1. TProgressthread
will stay in a loop checking the filesize every 5 seconds or so. It
will sleep in between. TProgressthread is stopped/destroyed by
TFTPthread.
Does this sound like a good model?
Thanks,
Brett
.
- Follow-Ups:
- Re: Can't use TComponent in thread object?
- From: Rob Kennedy
- Re: Can't use TComponent in thread object?
- From: Nicholas Sherlock
- Re: Can't use TComponent in thread object?
- 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: Rob Kennedy
- Can't use TComponent in thread object?
- Prev by Date: Re: More accurate Timerevent
- Next by Date: Re: Can't use TComponent in thread object?
- Previous by thread: Re: Can't use TComponent in thread object?
- Next by thread: Re: Can't use TComponent in thread object?
- Index(es):
Relevant Pages
|