TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

Dispose

static void Dispose();

Unloads the ONLYOFFICE Document Builder from the application memory when it is no longer needed. Generally, there is no need to dispose JS before exiting the process, it should happen automatically. It should only be used if the process needs the resources taken up by JS.

Please note, that for the .docbuilder file the CDocBuilder.Dispose method is not used.

Example

C++

std::wstring sWorkDirectory = NSUtils::GetBuilderDirectory();
CDocBuilder::Initialize(sWorkDirectory.c_str());
CDocBuilder oBuilder;
CDocBuilder::Dispose();