Skip to content

JsDisposeRuntime

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Disposes a runtime.

Syntax

STDAPI_(JsErrorCode)
    JsDisposeRuntime(
    _In_ JsRuntimeHandle runtime);

Parameters

  • runtime: The runtime to dispose.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Once a runtime has been disposed, all resources owned by it are invalid and cannot be used. If the runtime is active (i.e. it is set to be current on a particular thread), it cannot be disposed.

Clone this wiki locally