DIY orphanage:
BrightScript Debugger> malkovich = { }: malkovich.malkovich = malkovich
BrightScript Debugger> gc
total number of current bscs: 1398
number of root bscs: 92
number of orphaned bscs: 0
BrightScript Debugger> malkovich = invalid
BrightScript Debugger> gc
total number of current bscs: 1398
number of root bscs: 91
number of orphaned bscs: 1
BrightScript Debugger> malkovich = [ ]: malkovich.push(malkovich): malkovich = invalid
BrightScript Debugger> gc
total number of current bscs: 1398
number of root bscs: 91
number of orphaned bscs: 1
Yes... if it was indeed because of orphans that it's running out of memory and crashing. But i doubt that very much.
That orphans are involved, that is. That it crashes because of low memory - i believe very much.
Unfortunately there is no way to see how much memory your app is using. Or how much is free. Because... Roku.
BrightScript Debugger> dim restart[1e9] 'YAWRR, http://forums.roku.com/viewtopic.php?f=34&t=73863
Connection closed by foreign host.