Because the otherwise it would execute in the main thread context. Or you can use ThreadAttach which would be a waste of CPU cycles...
Regards, SZ ----- Original Message ----- From: "Paul" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Monday, June 05, 2006 3:32 PM Subject: Re: [twsocket] Program to thread >>> - HttpCli.create(nil) >> Of course. Be sure to create it from the thread's Execute method. > > Just being curious : why does is have to be created in the thread's > execute > procedure ? > > > Paul > > > ----- Original Message ----- > From: "Francois PIETTE" <[EMAIL PROTECTED]> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Monday, June 05, 2006 11:03 AM > Subject: Re: [twsocket] Program to thread > > >>> What is the correct way to convert an existing program with 1 HttpCli in >>> async mode to a thread? >>> >>> - HttpCli.create(nil) >> >> Of course. Be sure to create it from the thread's Execute method. >> >>> - HttpCli.Multithreaded:= true >> >> OK. >> >>> - place a message pump in the thread's execute procedure. >> >> OK. >> >>> - create a hidden window to post message to >> >> Only if you need one for your own use. >> >>> Something else to do ? >> >> Start the event chain just before entering the message pump. >> >> >> -- >> Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html >> -- >> [EMAIL PROTECTED] >> 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 >> >> > > -- > 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