Francois,
See my post, it is not sufficient to use OnRequestDone. There might still be
messages pending in case of abort/network error when SetReady is called
twice!
Regards,
SZ
On Sun, Oct 19, 2008 at 11:34 AM, Francois PIETTE <[EMAIL PROTECTED]
> wrote:
> > I am using a httpcli created on ru
> I am using a httpcli created on run-time. I first connect to a website,
> and after DocEnd I call another procedure that changes the event
> procedures and connects to a different website. On the 2nd call I get an
> Exception "HTTP component is busy", so I do this before trying the 2nd
> call
ssage -
> From: "Paul" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
> Sent: Saturday, October 18, 2008 21:40
> Subject: Re: [twsocket] best way to reset HttpCli
>
>
> >I think so,
> >
> > If you call Abort, OnRequestdone will be
I've decided to just free/re-create the httpcli at run-time, works the best.
thanks
- Original Message -
From: "Paul" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Saturday, October 18, 2008 21:40
Subject: Re: [twsocket] best way to reset HttpCli
I can't access FMsg_WM_HTTP_SET_READY because it's under Protected
- Original Message -
From: "Paul" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Saturday, October 18, 2008 21:40
Subject: Re: [twsocket] best way to reset HttpCli
>I think s
brian" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Saturday, October 18, 2008 9:15 PM
Subject: Re: [twsocket] best way to reset HttpCli
> You mean I should post the message and wait for the next call until
> OnRequestDone triggers?
>
> where is FMsg
ber 18, 2008 15:47
Subject: Re: [twsocket] best way to reset HttpCli
>I reported this as BUG in 2007. Then nobody seemed to find a real solution
> and I found a workaround:
>
> I created a descendent in C++ and,
>
> void __fastcall httpClient::SetReady()
> {
> if(al
I reported this as BUG in 2007. Then nobody seemed to find a real solution
and I found a workaround:
I created a descendent in C++ and,
void __fastcall httpClient::SetReady()
{
if(alreadySetReady)
return;
alreadySetReady = true;
PostMessage(FHandle, FMsg_WM_HTTP_SET_READY, 0, 0);
}
//---
Hi,
I am using a httpcli created on run-time. I first connect to a website, and
after DocEnd I call another procedure that changes the event procedures and
connects to a different website. On the 2nd call I get an Exception "HTTP
component is busy", so I do this before trying the 2nd call
tr