Great :-) That all made sense except this line HttpCli.CtrlSocket.MessagePump; // will break if WM_QUIT
What does that mean / do? Thanks a lot. Regards Nick > 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; > -- 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