Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pvallen
Visitor

Fixing orphaned object error

I don't recall ever seeing this message before when my app is unloaded (home key). Maybe it is new with the 2.6 firmware.

ERROR!!! - Found XXX orphaned objects.

I have assumed Brightscript does automatic garbage collection. Does this message indicate a problem with my application? Or simply that I had XXX objects at the time I unloaded? Is there something I should be doing to explicitly destroy objects to avoid this message?
0 Kudos
1 REPLY 1
RokuKevin
Visitor

Re: Fixing orphaned object error

BrightScript does do garbage collection. The message does not indicate a problem with your application.... It simply means you had xxx objects at the time you unloaded. Since we are now killing apps when the "Home" button is pressed, it is more likely that you get these messages about objects still needing to be garbage collected at the time the app exits.

--Kevin
0 Kudos