Hi Sergio,
Thanks for your help.
When i add : ReportMemoryLeaksOnShutdown := True;
i get a memory leak message On Shutdown:
An unexpected memory leak has occurred. The unexpected small block leaks are:
25 - 40 bytes: TsgcSChannelHandle x 1
41 - 56 bytes: TsgcCriticalSection x 1
The code used as an example is :
var oHttp : TsgcHTTP2Client;
begin
oHttp := TsgcHTTP2Client.Create(nil);
try
oHttp.TLSOptions.IOHandler := iohSChannel;
oHttp.Request.ContentType := 'application/x-www-form-urlencoded; charset=utf-8';
oHTTP.TLS := true;
oHTTP.TLSOptions.Version := tls1_3;
oHttp.ReadTimeout := 5000;
ShowMessage(oHttp.Get('https://www.google.com/'));
Finally
FreeAndNil(oHttp);
end;
Best Regards
Thanks for your help.
When i add : ReportMemoryLeaksOnShutdown := True;
i get a memory leak message On Shutdown:
An unexpected memory leak has occurred. The unexpected small block leaks are:
25 - 40 bytes: TsgcSChannelHandle x 1
41 - 56 bytes: TsgcCriticalSection x 1
The code used as an example is :
var oHttp : TsgcHTTP2Client;
begin
oHttp := TsgcHTTP2Client.Create(nil);
try
oHttp.TLSOptions.IOHandler := iohSChannel;
oHttp.Request.ContentType := 'application/x-www-form-urlencoded; charset=utf-8';
oHTTP.TLS := true;
oHTTP.TLSOptions.Version := tls1_3;
oHttp.ReadTimeout := 5000;
ShowMessage(oHttp.Get('https://www.google.com/'));
Finally
FreeAndNil(oHttp);
end;
Best Regards