[twsocket] Multiple TIcsWndHandlerPool created when loading a DLL
Hi, I started from the project plateformDemos\icsDLL1.dpr (but targeted to win32) and modify it suit my needs. I have a wierd problem which seems to come from the fact that when calling loadLibrairy whih call system.InitProcs call 2 times the initilization clause of OverbyteIcsWndControl.pas so I have two TIcsWndHandlerPool created and the TWSocket and TIcsWndControl didn’t share the same TIcsWndHandlerPool To reproduce the problem (2 instances of TIcsWndHandlerPool created after the loadLibrairy) , simply add to the uses clause of ICSDLL1.dpr “OverbyteIcsWndControl” and set a break point to OverbyteIcsWndControl.pas on the line initialization GWndHandlerPool := TIcsWndHandlerPool.Create; run ICSDLLTst1, click Call DLL1 I just update my XE2 to SP4 but this does not fix the problem I don’t know If it is a Delphi problem or a ICS problem Thanks for your help Dominique -- 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] Multiple TIcsWndHandlerPool created when loading a DLL
vanroie.d...@skynet.be wrote: Hi, I started from the project plateformDemos\icsDLL1.dpr (but targeted to win32) and modify it suit my needs. I have a wierd problem which seems to come from the fact that when calling loadLibrairy whih call system.InitProcs call 2 times the initilization clause of OverbyteIcsWndControl.pas so I have two TIcsWndHandlerPool created and the TWSocket and TIcsWndControl didn’t share the same TIcsWndHandlerPool To reproduce the problem (2 instances of TIcsWndHandlerPool created after the loadLibrairy) , simply add to the uses clause of ICSDLL1.dpr “OverbyteIcsWndControl” and set a break point to OverbyteIcsWndControl.pas on the line initialization GWndHandlerPool := TIcsWndHandlerPool.Create; I'm unable to reproduce it. I set the host application to IcsDLLTst.exe under Run | Parameters then F9 the IcsDLL1 library project and get exactly one halt at the break point in OverbyteIcsWndControl's initialization section. This is on Win7 64 bit, real machine. I just update my XE2 to SP4 but this does not fix the problem That's my test environment as well. -- 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