Hello, Just finished a application that creates a HTTPCli object dynamically in threads. Some 100 Pc's needs to be ping (network performance) and then 5 different "httpcli->head" actions on that Pc (wifi proxy testing). The only way it works without memory losses (with BCB6.0) is to use it ASYNC in the thread. The HTTPCli object can be used for more than one request. Multithreaded doesn't matter.
Regards Albert > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens Wilfred Owen > Verzonden: maandag 10 april 2006 11:10 > Aan: email@example.com > Onderwerp: [twsocket] HTTPCli in multithreaded application > > Hello > > I am new to ICS. I wish to use the HTTPCli component in a > multithreaded application to test the response from websites. > Any thread within the application may use an HTTPCli object > to make such a test. > > My preferred approach would be: within a thread, create an > HTTPCli object dynamically using the create method, and set > the URL property. Then set handlers for onDocData, and > onRequestDone and retrieve the page using the > Get() function. Use an exception handler to trap any problem > with Get(). > > - Do you see any potential problems with this, given that it > will occur in a multithreaded environment? > - Are there any problems with having multiple HTTPCli objects > running in multiple threads as described? > - Also, do I need to set the multithreaded property to true? > > Thank you in advance for any assistance you can give. > > Wilf > > > -- > To unsubscribe or change your settings for TWSocket mailing > list please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be