Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread Fastream Technologies
Make a property for it in the derived class then. This method would be much faster than object recreation! On Sat, Oct 18, 2008 at 11:38 PM, brian <[EMAIL PROTECTED]> wrote: > I can't access FMsg_WM_HTTP_SET_READY because it's under Protected > > - Original Message - > From: "Paul" <[EMAI

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 >I think so, > > If you call Abo

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 so, > > If you call Abort, OnRequestdone

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: > 2 - Use the SvCom service environment, which allows you to create a > application that may be run as either a GUI or service. > > http://www.aldyn-software.com/svcom.html > > I've used this for one new application, and it works nicely, although > I

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread Paul
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 in OnRequestdone. You problably have to free some streams anyway, which are usually freed in OnRequestdone. Paul - Original Message - From: "brian" <[

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
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 - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, October 18, 2008 15:47 Subject:

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Paul
I could try, but the same class runs fine in a normal application. I've used in many services wihout problems. Only now, it has to connect to a webservice first before connecting to an application server. Logon to this application server works on de second retry (3rd try) >From then on, it works p

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Angus Robertson - Magenta Systems Ltd
> I have a service application with a HtppsCli which has ran fine > connecting to a server. Debugging service applications is a pain. Experience has shown there are two ideal way to write service applications with Delphi. 1 - Write a normal windows executable, with a minimal GUI, I usually jus

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Paul
I can't image that is has something to do with the message loop. Once connected to the second webservice, it keeps running fine. There's a differenent behaviour between a service application and a normal program though. And bebugging a service is not as easy either .. Paul - Original Mess

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Arno Garrels
Paul wrote: > This is the service execute : > > procedure TRpUaClnt.DDServiceExecute(Sender: TDDService); > begin > FHandle:= RpUaClnt.ServiceWindow; > UaClient.OnDisplay:= Display; > UaClient.StartApplication; > while not terminated do >try > ServiceThread.ProcessRequests(true); >

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Paul
This is the service execute : procedure TRpUaClnt.DDServiceExecute(Sender: TDDService); begin FHandle:= RpUaClnt.ServiceWindow; UaClient.OnDisplay:= Display; UaClient.StartApplication; while not terminated do try ServiceThread.ProcessRequests(true); except on E: excepti

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Arno Garrels
Arno Garrels wrote: > Paul wrote: >>> Where to you create your class? >> in ServiceStart >> >>> Async or sync methods? >> Async >> >>> Maybe messages are not processed properly. >>> Are there more threads beside main thread and service thread? >> It's directlly in the service thread (with message

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Arno Garrels
Paul wrote: >> Where to you create your class? > in ServiceStart > >> Async or sync methods? > Async > >> Maybe messages are not processed properly. >> Are there more threads beside main thread and service thread? > It's directlly in the service thread (with message loop) Is TService.OnExecute a

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); } //---

Re: [twsocket] TPop3Cli header...

2008-10-18 Thread zayin
Hello, Thanks for the response. Will the 'From:' and 'Received:' lines always be the text for the lines. Or will it be translated to X language? Ciao, Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: Saturday, October 18, 20

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Paul
> Where to you create your class? in ServiceStart >Async or sync methods? Async >Maybe messages are not processed properly. >Are there more threads beside main thread and service thread? It's directlly in the service thread (with message loop) >What ICS version do you use? It's still V5 Paul

[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

Re: [twsocket] HttpsCli in service application

2008-10-18 Thread Arno Garrels
Paul wrote: > I have a service application with a HtppsCli which has ran fine > connecting to a server. > Now, I need the HttpsCli connecting to another webservice first. > Connecting to this new webservices runs fine, but when the HttpsCli > connects to another webservice afterwards, it goes wrong

[twsocket] HttpsCli in service application

2008-10-18 Thread Paul
Hi, I have a service application with a HtppsCli which has ran fine connecting to a server. Now, I need the HttpsCli connecting to another webservice first. Connecting to this new webservices runs fine, but when the HttpsCli connects to another webservice afterwards, it goes wrong: The first tim

Re: [twsocket] TPop3Cli header...

2008-10-18 Thread Francois PIETTE
> I am using V5. > > This is all part of automated alarming logic. > > I need to verify that some user responded to an alarm email. I just need > to > check the email address against a list. > > I see in the header the first line is Return-path: > > Will it be that format/language for all mail se