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 Message ----- 
From: "Arno Garrels" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Saturday, October 18, 2008 6:54 PM
Subject: Re: [twsocket] HttpsCli in service application


> 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);
>>    except
>>      on E: exception do
>>        begin
>>          Display('Error occured @ ' + DateTimeToStr(now) +
>>          ' - ' + E.Message, ntlError);
>>        end;
>>    end;
>> end;
>
> Looks well :-( Message loop is started properly.
> Hard to tell what might be wrong?
>
> --
> Arno Garrels
>
>>
>> Paul
>>
>>
>> ----- Original Message -----
>> From: "Arno Garrels" <[EMAIL PROTECTED]>
>> To: "ICS support mailing" <twsocket@elists.org>
>> Sent: Saturday, October 18, 2008 5:07 PM
>> Subject: Re: [twsocket] HttpsCli in service application
>>
>>
>>> 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 assigned?
>>> If not, the service thread runs its message loop
>>> ProcessRequests(FALSE) when OnStart is left, calling another message
>>> loop in OnStart won't be a good idea. If you assigned
>>> TService.OnExecute you should show some code.
>>>
>>>>
>>>>> What ICS version do you use?
>>>> It's still V5
>>>
>>> Provided you added the old SSL-fixes to v5 posted to ICS-SSL last
>>> year and to this list recently I have no idea what else might be
>>> wrong.
>>> If it works in the GUI application it's likely a bug in your service
>>> code?
>>>
>>> --
>>> Arno Garrels
>>>
>>> --
>>> 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
> -- 
> 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
> 

-- 
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