Previous Next


Freeing the "Root" RDKApplication Object

When you have finished using the RDKApplication object, you must call the Free method to release the object. Failure to call the Free method may result in a memory leak in your application. You must also call the Detach method of the class module that handles RDKX events. The example code below shows the sequence of steps you would take in your application's shutdown code:

Public Sub AppShutDownCode()
    RDKEvents.Detach
    RDKApp.Free
    Set RDKEvents = Nothing
End Sub