THPDFQuickJS.TryReleaseEvalCacheOwner
Unit: HPDFQuickJS
Declaration
function TryReleaseEvalCacheOwner(OwnerID: UInt64;
out Status: THPDFQuickJSStatus): Boolean;
Behavior and ownership
Releases an owner only when no engine remains attached. Otherwise it returns qjsBusy without mutation; zero or an unknown/released ID returns qjsInvalidArgument. Destroy or detach every attached engine before release
Release walks that owner's memberships and reclaims entries with no other owner and no unscoped pin. Shared payloads and unrelated owners remain valid. The API call requires an available binding; advanced raw-function callers must keep the originating module loaded until release completes
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