Date: Thu, 28 Mar 2024 01:51:22 -0700 (PDT) Message-ID: <1153809597.119.1711615882844@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_118_622912616.1711615882843" ------=_Part_118_622912616.1711615882843 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Releases a previously instantiated COM object from memory.
Syntax
Result =3D SRP_Com= (Object, "RELEASE")
1 if the object was released successfully, 0 if there was an error.
The RELEASE service removes an instantiated object from memory. When you= use the CREATE s= ervice to create objects, the GET service to get objects, or the CALL services for functions that return objects, they are l= oaded into memory and remain there until you either release the object usin= g the RELEASE service or until OI closes down. If you forget to call this s= ervice; SRP_Com will clean up whatever is left, but it is best prac= tice to release every object you create or get to avoid memory issues.
// Instantiate the= MSXML DOM Document object If SRP_Com(objXmlDoc, "CREATE", "Msxml2.DOMDocument") then // Release the object when we're done with it SRP_Com(objXmlDoc, "RELEASE") end else Error =3D SRP_Com("", "ERROR") end