PROTECTED]
To: ICS support mailing twsocket@elists.org
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 triggered.
You can set a flag when you call abort, and then you can take action
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
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
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);
}
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(alreadySetReady)
return;
alreadySetReady = true
[EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
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_WM_HTTP_SET_READY defined?
thanks
I can't access FMsg_WM_HTTP_SET_READY because it's under Protected
- Original Message -
From: Paul [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, October 18, 2008 21:40
Subject: Re: [twsocket] best way to reset HttpCli
I think so,
If you call Abort
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 twsocket@elists.org
Sent: Saturday, October 18, 2008 21:40
Subject: Re: [twsocket] best way to reset HttpCli
I think so