What about setting a flag in triggerrequestdone and then checking for
it with while loop just as we do now for httpready in Dorequestsync?
This would eliminate the issue and let us use both sync and async
together! Remember Arno the "head failed" message after the second get
in my demo? This would solve it!

Regards,

SZ

On 5/15/09, Francois Piette <[email protected]> wrote:
> > Here is the problem: Even though state = httpReady (this is what
> > DoRequestSync checks!), there are still messages pending--onrequestdone is
> > called later!!
> >
> > If this was fixed, there would be no problem with mixing sync and async
> > methods. We just need an event which is the LASTEST message handler in
> > EVERY/ALL cases.
> >
> > I know this is a design issue and not so easy but maybe you the more
> > experienced guys can come up with a solution that is easier than I
> think...
>
> As I said a few days ago (but not sure it was an answer to one of your
> questions), to be out of any event handler and have all pending messages
> processed, you must use PostMessage to put a new message on the queue and do
> your processing from the corresponding message handler.
>
> --
> [email protected]
> Author of ICS (Internet Component Suite, freeware)
> Author of MidWare (Multi-tier framework, freeware)
> http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to