Hi, Sorry, it's my fault !
I forgot to remove one Application->ProcessMessages call while converting app from single-threaded to multi-threaded architecture. So, it's erases some messages before processing in thread message loop. Be careful with ProcessMessages ! Never use it with ICS ! > -----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 (TSmtpCli) per TThread. > > TSmtpCli works in async mode. > > Each TThread contains 20 TSmtpCli's (created inside TThread->Execute) and > message loop procedure. > > I create 5 TThreads, so it's 100 TSmtpCli instances. > > But while performing stress-testing I notice what only 1-2 TSmtpCli per thread is > working very fast ! All other SmtpCli's is hangs in some state (Connecting or sending > some Smtp command). > > My message loop is very simple: > > while(GetMessage) > { > // some very fast processing > TranslateMessage; > DispatchMessage > } > > Single MessageLoop procedure per 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 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