PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Freeing objects

At what point should I free an object? Lets say I
1) create a local object with the name of MYTEST in the main procedure.
2) I then free it with Freeobject().
3) I call another Procedure and create a local object with the same name.

If I am using the same name for an object throughout my code, but the object is local to each procedure, do I need to free it before I leave each procedure?
PPL won't free objects automatically. You need to do it manually. Make sure you keep a list of there address somewhere.
Ok. but my question is, if I create an object inside a proc, it can only be accessed in that proc, so I have to free it before I leave the proc otherwise it won't recognize the object name, correct?
Right!