THPDFQuickJS.TryCreateEvalCacheOwner

Unit: HPDFQuickJS

Declaration

function TryCreateEvalCacheOwner(out OwnerID: UInt64;
  out Status: THPDFQuickJSStatus): Boolean;

Behavior and ownership

Returns True with qjsSuccess and a nonzero OwnerID on success. IDs increase within the loaded module and are never reused during that module lifetime; they are opaque handles, not persistent document IDs

Failure clears OwnerID to zero. Missing optional support returns qjsUnavailable; allocation, bookkeeping-cap or ID exhaustion returns qjsResourceError. Creation does not attach this engine

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