[twsocket] Error in function WSACancelAsyncRequest

2006-07-28 Thread Max Terentiev
Helo, My program uses TSmtpCli and I receive this exception time to time: Error in function WSACancelAsyncRequest - Invalid Argument. How to avoid this error ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] -- To unsubscribe

[twsocket] Best event to start new Smtp session

2006-07-29 Thread Max Terentiev
I must do something special ? How i can ensure what connection is 100% closed and component 100% ready for next session ? I NOT use Application-ProcessMessages inside SmtpCli events. Please help... And excuse me for bad english. --- With best regards, Max Terentiev. Business Software Products

Re: [twsocket] Best event to start new Smtp session

2006-07-29 Thread Max Terentiev
OnSessionClose event is triggered (OnRequestDone NOT triggered in this case). So, to start new sessuion I must use OnSessionClose in case of Smtp protocol error/Abort and OnRequestDone in case of successfull sending (no Abort) ? --- With best regards, Max Terentiev. Business Software Products. AMS

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
OnSessionClose event is triggered (OnRequestDone NOT triggered in this case). So, to start new sessuion I must use OnSessionClose in case of Smtp protocol error/Abort and OnRequestDone in case of successfull sending (no Abort) ? --- With best regards, Max Terentiev. Business Software Products. AMS

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
OnSessionClose ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 12:19 PM Subject: Re: [twsocket] Best

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
Hello Francois, I don't use Application-ProcessMessages in entire application. If event OnSessionClose may trigger (or may not trigger) twice maybe these checks should be implemented inside SmtpCli component ? Because it's looks like a serious bug. --- With best regards, Max Terentiev. Business

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
try to dig code of cource... But it's may to dificult to find random bug in these large library :-) -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Max Terentiev [EMAIL PROTECTED

Re: [twsocket] Best event to start new Smtp session

2006-07-31 Thread Max Terentiev
, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 8:47 PM Subject: Re: [twsocket] Best event to start new Smtp session

Re: [twsocket] Best event to start new Smtp session

2006-08-01 Thread Max Terentiev
Helo Wilfred ! You should first check the state of the component before posting the message. If not ready then OnRequestdone will be fired again when component is ready. YES, it's helps !!! You should insert these check inside SmtpCli component ! Because without this check it's works buggy !

[twsocket] Connect() time out

2006-08-02 Thread Max Terentiev
is proper way to cancel Connect() by timeout ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website

Re: [twsocket] Connect() time out

2006-08-02 Thread Max Terentiev
attempts ! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, August 02, 2006 1:27 PM Subject: Re: [twsocket

Re: [twsocket] Connect() time out

2006-08-02 Thread Max Terentiev
Helo, I try to use SmtpCli-CtrlSocket-CloseDelayed instead SmtpCli-Abort(). It's works much much better ! No more 10004 errors after cancelling timed out connections ! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original

[twsocket] Is TSslSmtpCli support async non-blocking mode ?

2009-08-18 Thread Max Terentiev
Hi, Does TSslSmtpCli supports non-blocking mode ? I ask because TSslSmtpCli = class(TSyncSmtpCli) So, it's should works only in Sync (blocking) mode ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your

[twsocket] How to use many TSmtpCli's inside thread ?

2009-08-18 Thread Max Terentiev
Hi, It's possible to use multiple TSmtpCli inside single TThread ? For example, I want to handle 100 connections using 5 TThreads. Each TThread should contain 20 TStmpCli's. Is it's possible ? I must use T(ssl)SmtpCli or TSYNCSmtpCli ? --- With best regards, Max Terentiev. Business Software

Re: [twsocket] How to use many TSmtpCli's inside thread ?

2009-08-18 Thread Max Terentiev
Use TSslSmtpCli and call the async methods. Your threads must also implement a message pump or simply call the ICS, built-in, message pump instead (TSslSmtpCli.CtrlSocket.MessageLoop). But how to implement message pump if I create many TSmtpCli inside TThread ? I must implement loop like

[twsocket] Can I use TPing in async mode ?

2009-09-30 Thread Max Terentiev
Hi, It's possible to use TPing component in async mode ? Or I must use TPing inside threads to pinging large amount of IP adresses ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your settings for TWSocket

[twsocket] Static link of OpenSSL libs ?

2009-10-04 Thread Max Terentiev
. It's possible ? Thanx for help ! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website

Re: [twsocket] Static link of OpenSSL libs ?

2009-10-04 Thread Max Terentiev
Hi, I'm not an expert with BCB. If Delphi can call BCB compiled functions, linking the obj files produced by BCB, then it is theoretically possible to modify ICS-SSL to replace dynamyc linking by static linking. Delphi should call bcb compiled functions. For example, ICS contains some

[twsocket] Proper way to abort DNSQuery

2009-10-12 Thread Max Terentiev
be sure what after aborting timeouted query I will not receive OnRequestDone for aborted query while starting new one. Thanx for help ! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your settings for TWSocket

[twsocket] Same question abot SmtpCli (proper way to abort)

2009-10-12 Thread Max Terentiev
regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- 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

Re: [twsocket] Same question abot SmtpCli (proper way to abort)

2009-10-12 Thread Max Terentiev
Do not reconnect directly from an event handler, but post a custom window message and from the message handler set properties as needed and reconnect. But if I understand correctly CloseDelayed already use PostMessage and window handler to terminate connection. So, if I will use CloseDelayed

[twsocket] AccessViolation in TCustomWSocket.Receive

2009-10-12 Thread Max Terentiev
at FReadCount := FReadCount + Result; line. My app use TSmtpCli in async mode and PingThread by Angus Robertson. IDE = BCB6. I never notice this problem with ICS v5. Maybe I must update some my code to avoid problems with V6 ? --- With best regards, Max Terentiev. Business Software Products. AMS

[twsocket] AccessViolation in TCustomWSocket.Receive (updated !)

2009-10-22 Thread Max Terentiev
this problem only after upgrading to ICS v6. --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com - Original Message - From: Max Terentiev maxterent...@mail.ru To: ICS support mailing twsocket@elists.org Sent: Tuesday, October 13, 2009 12:56

[twsocket] Serious bug in TWSocket (AV or buffer overflow) Please help !

2009-10-31 Thread Max Terentiev
start of receiving data up to AV). You can watch it here: http://www.bspdev.ru/Icsbugnew/Icsbugnew.html It's should help ICS authors to fix the bug ! I probably can't fix it myself because it's requires very deep ICS knowledge. --- With best regards, Max Terentiev. Business Software Products. AMS

Re: [twsocket] Serious bug in TWSocket (AV or buffer overflow) Pleasehelp !

2009-10-31 Thread Max Terentiev
call Result := DoRecv(Buffer, BufferSize, 0); Self address changed to another (6C69614D)! And FReadCount variable now undefined = AV ! You can see it in video in my previous message. Looks like it's some problems with WSocket classes inheritance... --- With best regards, Max Terentiev. Business

Re: [twsocket] Serious bug in TWSocket (AV or bufferoverflow)Pleasehelp !

2009-11-01 Thread Max Terentiev
Hi Arno, Yes, it's helps ! But I will perform some heavy tests for sure... Thanx for the fix !!! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com - Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support

Re: [twsocket] Serious bug in TWSocket(AVorbufferoverflow)Pleasehelp !

2009-11-01 Thread Max Terentiev
Hi Arno, I think all Move() calls in ICS code should be checked... Bugs maybe not only in this place --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com - Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS

[twsocket] How to determine MX servers priority in TDnsQuery component ?

2010-07-20 Thread Max Terentiev
Hi, How to determine preferred (top priority) MX server after calling TDNSQuery-MXLookup ? Thanx for help ! -- 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

[twsocket] Migration from ICS v6 to v7

2010-11-08 Thread Max Terentiev
Hi, What a differences between ICS v6 and v7 ? I see what ICS v6 is discontinued and thinking about migration to v7. But what exactly is v7 better ? What changes in my application code must be done to use ICS v7 instead v6 ? I use BCB 2007 and TWSocket, TPop3Cli, TSmtpCli,

[twsocket] Many TWSockets - how to update interface and respond to user actions ?

2010-11-23 Thread Max Terentiev
, etc) ! But it's will produce many problems in async mode ! So, how I can repaint App interface and respond to user actions ? Where to call Process Messages ? Or maybe I forgot to set some important TWSocket property ? --- With best regards, Max Terentiev. Business Software Products. AMS

[twsocket] Clarification of my previous question

2010-11-23 Thread Max Terentiev
with single TStmpCli if message body is large. I use TSmtpCli (NOT sync version). It's some bug ? Or feature ? :-) --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Clarification of my previous question

2010-11-24 Thread Max Terentiev
Hi Arno, If that happens with a fast network connection (LAN) then it's a normal behavior in main, GUI thread since paint messages have less priority than messages actually posted to the message queue. Yes, it's happens on fast 1 GB Lan and very light and fast smtp server on second PC. No

Re: [twsocket] Clarification of my previous question

2010-11-24 Thread Max Terentiev
question Max Terentiev wrote: Hi Arno, If that happens with a fast network connection (LAN) then it's a normal behavior in main, GUI thread since paint messages have less priority than messages actually posted to the message queue. Yes, it's happens on fast 1 GB Lan and very light

[twsocket] Many TWSockets per TThread problem

2010-12-16 Thread Max Terentiev
TThread is enough ? Or I see this problem because I use very fast channel for testing (1 GB) ? Or it's probably my fault/bad threads design ? p.s. ICS v6, BCB2007. --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change

Re: [twsocket] Many TWSockets per TThread problem

2010-12-16 Thread Max Terentiev
! -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Max Terentiev Sent: Friday, December 17, 2010 1:32 AM To: 'ICS support mailing' Subject: [twsocket] Many TWSockets per TThread problem Hi, I try to use many instances of TWSocket

[twsocket] IPv6 support ?

2011-06-07 Thread Max Terentiev
Hi, Does ICS v6-v7 support IPv6 ? Can't find any info about it at overbyte.be Thanx ! -- 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

[twsocket] Smtp connect via Http proxy

2012-03-10 Thread Max Terentiev
Hi, It's possible to send mail with TSmtpCli using Http(s) proxy ? Often users of my app go to internet via lan http proxy without Socks protocol support. So, I must add this feature... I read something about http proxy tunneling. This feature already implemented in TSmtpCli/TWSocket ? Or I

[twsocket] DomainKeys/DKIM signature

2012-03-30 Thread Max Terentiev
Hi, My app uses TSmtpCli for sending messages. Does ICS contain any function or components for adding DomainKeys or DKIM signature in to headers of my messages ? Thanx for help ! -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] DomainKeys/DKIM signature

2012-03-31 Thread Max Terentiev
Of Arno Garrels Sent: Friday, March 30, 2012 8:50 PM To: ICS support mailing Subject: Re: [twsocket] DomainKeys/DKIM signature Max Terentiev wrote: Hi, My app uses TSmtpCli for sending messages. Does ICS contain any function or components for adding DomainKeys or DKIM

[twsocket] Found serious bug in HdrEncodeInline and/or StrEncodeQPEx

2012-10-16 Thread Max Terentiev
; { AG } SetLength(Result, MaxCol); HERE IS LINE 2045 Any suggestions to fix this problem ? Many thanks ! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your settings

[twsocket] Again about serious bug in HdrEncodeInline and/or StrEncodeQPEx

2012-10-16 Thread Max Terentiev
MANY SPACEs with 80-90 spaces. --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website

[twsocket] FIX for bug in HdrEncodeInline and/or StrEncodeQPEx !!

2012-10-17 Thread Max Terentiev
be replaced with if (Buf[cPos] = ' ') and (lPosRes MaxCol) and ShortSpace then begin I also check latest ICS V8 code and this problem is NOT fixed here ! So, you should apply this fix to both V7 and V8. --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp

[twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Max Terentiev
(s). At this time I try to use 25 TSmtpCli per Thread but see very high CPU usage and app interface responding this delays.. Maybe 25 per thread is not optimal ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. mailto:supp...@bspdev.com supp

Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Max Terentiev
DataNext/WSocket.SendStr/OnDataSent calls instead of 1600 ! My question is: why message data send line-by-line instead of larger portions ? Because it's violate some another Smtp protocol rules ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp

Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Max Terentiev
difference. Right now I playing with enlarging send buffer... With 900 bytes length I see about 300% of speed increase (from 200 megabytes/sec to 600 megabytes/sec). --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com -Original Message

[twsocket] Unable to create TIcsWndControl hidden window.

2013-04-12 Thread Max Terentiev
TIcsWndControl hidden window. Error 1158 How I can use 4-5K of TSmtpClis in my app ? P.s: ICS v7, C++Builder 2007 with all updates, my app uses FastMM and FastCode. Thanx for help ! --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. supp...@bspdev.com