Ross,
My experience with components and threads is
that you should be able to use the Indy Component within your thread without
calling synchronize provided:
a) you manage form destruction well, so that
the component can't be destroyed while the thread is working with
it.
b) you do not have any event handlers in the
component that call methods on the form (This is a great way to make things go
BANG).
c) there is no other code in the form which
works with the Indy Component; it must all live within the thread.
d) there is no code in the component which
references its owner while the thread is fiddling with it.
e) the component itself does not rely on
non-threadsafe behaviour.
I haven't done a lot with Indy in threads so I
don't know how safe it is going to be to use, but I have done a whole bunch with
IBX in threads and the results have been great.
HTH
Trevor
|
- [DUG]: Threads again Ross Levis
- Re: [DUG]: Threads again Trevor Jones
- Re: [DUG]: Threads again Ross Levis
- RE: [DUG]: Threads again David Brennan
- Re: [DUG]: Threads again Trevor Jones
- [DUG]: Another MS/Borland stuffup Rohit Gupta
- [DUG]: Delphi 7 - Designeditors Rohit Gupta
- Re: [DUG]: Delphi 7 - Designeditors Neven MacEwan
- [DUG]: dcp inside bpl Rohit Gupta
- RE: [DUG]: Threads again Stacey Verner
- Re: [DUG]: Threads again Ross Levis