[twsocket] TSslHttpCli and multi Thread application

2015-09-23 Thread Boris JURČAK , Kostra d . o . o .
Hi How can I use TSslHttpCli in multi threading app. I create Thread with TSslHttpCli, TSslContext, TIcsLogger, TSslAvlSessionCache, put the proper URL and pem certificate. When try to POST data ... [11:00:46.635] Logger:11:00:46:551 State = httpNotConnected [11:00:46.638] Logger:11:00:46:552

Re: [twsocket] TSslHttpCli and multi Thread application

2015-09-23 Thread Boris JURČAK , Kostra d . o . o .
Hi Thanks for fast respond I put code (for logging) on event OnBgException ... Result: [12:21:19.814] Logger:12:21:19:770 State = httpNotConnected [12:21:19.815] Logger:12:21:19:770 Login "www..." [12:21:19.816] Logger:12:21:19:773 State = httpDnsLookup [12:21:19.817] Logger:12:21:19:817 S

Re: [twsocket] TSslHttpCli and multi Thread application

2015-09-23 Thread Boris JURČAK , Kostra d . o . o .
Hi Thanks for your response. I spend a few days to try to solve this big problem for me ... I done what you say, but still got exception ... TSMSMobile is record .. type THttpsThread_Telekom = class(TThread) private Cli: TSslHttpCli; SslContextCli: TSslContext; IcsLogger: TIcsLo

Re: [twsocket] TSslHttpCli and multi Thread application

2015-09-24 Thread Boris JURČAK , Kostra d . o . o .
Thanks Agnus for advices. I solved the problem, the error was in initialization of SslContex. Regards Boris Signature Angus Robertson - Magenta Systems Ltd je 9/24/2015 ob 11:01 AM napisal: I done what you say, but still