You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the except section of DeepLTranslateTextASync the parameter e.message is not transfered to the callback function onTexTranslatedErrorProc.
Whether this is only the case in Delphi 10 Seattle or also in other versions, I cannot say.
This code works in any case:
var
se : string;
begin
...
except
on e: exception do begin
se:=e.Message;
if assigned(onTexTranslatedErrorProc) then
tthread.queue(nil,
procedure
begin
onTexTranslatedErrorProc(text, source_lang, target_lang,se);
end);
end;
The text was updated successfully, but these errors were encountered:
In the except section of DeepLTranslateTextASync the parameter e.message is not transfered to the callback function onTexTranslatedErrorProc.
Whether this is only the case in Delphi 10 Seattle or also in other versions, I cannot say.
This code works in any case:
The text was updated successfully, but these errors were encountered: