Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Dec : IdHTTP - IdConnectionIntercept - Question
| Subject: | IdHTTP - IdConnectionIntercept - Question |
| Posted by: | "James Tallent" (jrtalle..@austin.rr.com) |
| Date: | Sun, 25 Dec 2005 11:10:59 |
I have created an OCX using the components: IdHTTP and
IdConnectionIntercept.
I use the IdConnectionIntercept's OnReceive Event to perform realtime
processing of incomming data.
For my application it is necessary to have more than one realtime stream of
data being processed simultaneously, therefore I must add multiple ocx to a
single application.
My problem is that only one ocx's OnReceive event runs at a time. For
example,
First, start receiving data with ocx_A,
Next, start receiving data with ocx_B.
When ocx_B's OnReceive event is first triggered the OnReceive event of ocx_A
is blocked until the OnReceive event of ocx_B finishes. Once ocx_B finishes
downloading, ocx_A resumes it download.
Of course this is not a workable solution since I am working with real-time
data.
I have tried setting the TThreadingModel type of the OCX to (tmSingle,
tmApartment, tmFree) but the behavior is the same.
One further note, If I add only one OCX to a single application then run
several application simultaneous download works fine.
I am sure my error is simple and I would greatly appreciate any assistance
here.
Thanks James