You are not logged in.
Pages: 1
I need to execute the TJsonClient.Request method inside a thread pool task, but I have a problem: how can I pass an array of const parameter?
In such a situation, how would you operate?
I looked at the official code and found that it directly used the addresses of records and classes.However, both records and classes cannot pass an array of const.
procedure TCustomThreadPool.Task(aCaller: TSynThreadPoolWorkThread; aContext: pointer);
begin
TJsonClient.Request(const Method, ActionFmt: RawUtf8;
const ActionArgs, QueryNameValueParams, HeaderNameValueParams: array of const;
var Res; ResInfo: PRttiInfo;
const CustomError: TOnJsonClientError = nil);
end;
Last edited by testgary (2025-06-16 06:21:32)
Offline
Pages: 1