Hi
A function that signs a PDF document causes an exception when the variable is freed.
The function looks like
VAR
PAdES: TPAdES;
Begin
PAdES := TPAdES.Create(Nil);
TRY
PAdES.KeyFilePath := Fichier_Cle;
PAdES.CertFilePath := Fichier_Cert;
PAdES.PKCS11Param.isToken := False;
PAdES.PathToOriginalFile := ExtractFilePath(Temp);
PAdES.GenerateSignature(Temp, Source);
FINALLY
PAdes.Free;
END;
END;
The document is signed. However, the execption occurs when PAeds is freed.
I join the log file created by FastMM4 to help you.
Regards
Bagueur_MemoryManager_EventLog_paeds.txt (82,9 Ko)