Hello Nick, > things at once - do I have to drop 4 HttpCli components on the form or > can I create them at run time?
If you drop themon a form then they are created and so will operate in main thread context. > and you can't use 1 HttpCli to download two > things at once No but you can use 4 HttpCli in the same thread doing 4 different downloads. You dont need thread to have multiple components doing the same, all work is done in background while your program can do other things. Note that you can use same event handlers for all the components. > If I can create them at run time, do you have some same code. procedure SomeThread.Execute; var HttpCli: THttpCli; begin HttpCli := THttpCli.Create(nil); // set properties as wanted // assign event handlers here // connect HttpCli.CtrlSocket.MessagePump; // will break if WM_QUIT HttpCli.Free; end; --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, October 25, 2005, 08:56, Nick wrote: > Hi there, > I guess it could mean any component really, but I am looking at > using HttpCli in a project that works with threads, to do with > downloading. Now the user can specify 1-4 threads, as each thread > needs to download things and you can't use 1 HttpCli to download two > things at once - do I have to drop 4 HttpCli components on the form or > can I create them at run time? > If I can create them at run time, do you have some same code. > Also does this also mean I can do this thing with other components > (non-visual components like HttpCli) > Regards > Nick -- 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