THPDFQuickJS.TrySetEvalCacheOwner
Unit: HPDFQuickJS
Declaration
function TrySetEvalCacheOwner(OwnerID: UInt64;
out Status: THPDFQuickJSStatus): Boolean;
Behavior and ownership
Attaches this engine to an existing owner from the same module. OwnerID=0 detaches into the original unscoped mode, and attaching the same owner again succeeds without another attachment
An invalid ID returns qjsInvalidArgument; a busy engine returns qjsBusy. Failed attachment preserves the preceding owner. Engine destruction detaches automatically but does not release the owner registration
All three optional owner exports and EvalCached are required; required ABI version 1 and older-provider loading remain unchanged. No owner IDs or native pointers are serialized into XDP or public replay source
Related APIs
Compiled-cache owner contract and native budgets and Automatic XFA Session ownership