Article View: borland.public.cppbuilder.internet.socket
Article #4494Indy 10 Fibers not working under Win2003
From: Omar Zelaya
Date: Fri, 28 Jan 2005 16:46
Date: Fri, 28 Jan 2005 16:46
35 lines
2091 bytes
2091 bytes
Hi, I have made the changes from a server service developed on Indy 9 to Indy 10, and is working ok(without fibers) on both development machine(winxp) and production (Win2003 server). Now i have added the fibers components to the Service form and have linked them to each other to test fibers... TIdSchedulerOfFiber, TIdFiberWeaverThreaded, TIdSchedulerOfThreadPool On run time i create the TCPServer(more than one) and i have the following code : TCPServer = new TIdTCPServer(NULL); TCPServer->Active = false; TCPServer->DefaultPort = PortNum; TCPServer->OnConnect = MyIdTCPServerConnect; TCPServer->OnDisconnect = MyIdTCPServerDisconnect; TCPServer->OnExecute = MyIdTCPServerExecute; TCPServer->Scheduler = indySchedulerOfFiberAlone; =>TIdSchedulerOfFiber When i run the service under WinXp everything works ok....but under Win2003 i get an exception and no connect or execute events are triggered. If i comment the Scheduler assignment..it works with no problem under Win2003. I'm have tried using the 10.x.52 and the latest snapshot. Could be that i'm not using fibers in the correct way? Thanks in advance Omar Zelaya
Technical Details
Message-ID:
<41fa6e13$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9fc00470433c4b70,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Omar Zelaya" <ozelaya2010@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Indy 10 Fibers not working under Win2003 Date: Fri, 28 Jan 2005 10:46:15 -0600 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 200.30.163.216 Message-ID: <41fa6e13$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106931219 200.30.163.216 (28 Jan 2005 08:53:39 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail