However TestComplete should look after garbage collection once the script is closed. I do not think that's happening.
This is the script:
function Get_Table_Cell_script(Row_param, Col_param)
var Text = OCR.Recognize(Aliases.Reflection_app.MCS_UAT_form.MCS_Display).DetectTable(spNone, false).Cell(Row_param, Col_param).Text;
The above was initially written with intermediate objects that were "nullified" before exiting.