3.7.Destroying Jt Objects Jt Objects need to be destroyed once they are not longer needed. destroyObject is used for destroying Jt Objects: main.destroyObject ("helloWorld"); or main.destroyObject (helloWorld); This causes a JtDESTROY message to be sent to the object. As explained earlier, the object should process JtDESTROY and release any resources that were allocated (if any). The object being destroyed is also removed from the reference table (children references) kept by its parent object. At this stage, the object should be ready to be collected by the standard garbage collection mechanism.
Isn't there this new fancy language called Java that doesn't require you to explicitly destroy objects? And isn't there this new fancy thing called scopes in J2EE that allow you to pass data to pages and not worry about what happens to those objects when the scope is, well, out of scope? :roll: