Re: [twsocket] best way to reset HttpCli

2008-10-19 Thread Fastream Technologies
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

Re: [twsocket] best way to reset HttpCli

2008-10-19 Thread Francois PIETTE
> 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

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread Fastream Technologies
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

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
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

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
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

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread Paul
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

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
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

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread Fastream Technologies
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); } //---

[twsocket] best way to reset HttpCli

2008-10-18 Thread brian
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