[jawsscripts] Re: Clearing objects after use
- From: "Paul Magill" <magills@xxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Fri, 14 Nov 2008 20:40:17 +1100
Hi,
I was going to add this in a reply to a post, that suggested that not
clearing objects after use may be the cause of problems with Jaws, but I
lost that post, so am now guessing at the context...
When finished with objects that have been created in scripts, they should be
nulled, or cleared, so they do not remain in memory.
*. This is particularly important when those objects have been declared as
globals.
Though, in theory, objects declared inside functions or scripts are cleared
when that script or function ends, it wont hurt to also null the object at
the end of the script or function.
This idea & method was not developed by me, but by Jamal Mazrui, & I have
simply used what he so generously published on the list.
Where your objects are declared, also declare an extra object which is used
for absolutely nothing other than to Null the others when you have done with
them.
.... other object declarations,
object O_Null,
...other declarations
Then where the use of an object is finished...
let O_AnyOneOfYourObjects = O_Null
Objects left in memory may not be the cause of your problem with Jaws, but
if it is, then the above may help.
Regards,
Paul from Aust
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: