Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 8

Orphaned objects

Hello Roku Gurus.
I'm getting orphaned objects. So far it never causes a crash on the device.
1. After a video I can end up with 80 - 1000 orphaned objects is that something to worry about?
2. Is there any way to get hints on what objects are orphaned?

The only information I get is:
Note: GC - Found XXX orphaned objects (objects in a circular ref loop).
0 Kudos
1 REPLY 1\
Level 7

Re: Orphaned objects

These can be generated as stated by the GC because of circular references. This can mean that a child object created by a parent object contains a reference or pointer to its parent thus creating a circular reference. Parent holds reference to child, child holds reference to parent. You should be able to examine your own code, particularly associative arrays that reference each other. This can occur in some implementations of drill down XML parsing. As to how many can be stacked can "possibly" cause stack problems and eventually device failure. But this is unclear based upon previous posts
My Channels: 2D API Framework Presentation:
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos