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