Hello, With your code below THttpCli's events are not executed in TBaseThread. Create and Destroy THttpCli in Execute procedure of the thread.
--- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Anatoly Podgoretsky wrote: > Hi! > > I want use THttpCli within TTread, but when I close application it > eception with AV at address 0 Code follow > > constructor TBaseThread.Create; > begin > inherited Create(False); > FreeOnTerminate := True; > HttpClient := THttpCli.Create(nil); > { > HttpClient.Agent := 'Anatoly Podgoretsky NNTP Server'; > HttpClient.MultiThreaded := True; > } > end; > //****************************************************************************** > // ?????????? ???????? ?????? > //****************************************************************************** > destructor TBaseThread.Destroy; > begin > HttpClient.Free; > inherited; > end; > > What I'm doing wrong? > Thread do nothing with main thread, this code only for testing. Real > will written in future > > With best regards, > Anatoly Podgoretsky -- 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