"RokuJoel" wrote:
print RunGarbageCollector()
I believe that will only return the count of orphaned objects, not what they are.
@SkipFire, in my experience, any time you exit the channel with the home button, you're going to have orphaned objects, because the screen stack doesn't have an opportunity to close cleanly. There is a second or two before complete termination as the box closes the screens where some cleanup could be executed to clear any content lists you have referenced, but it's hit or miss (particularly if you have an roAudioPlayer instance open). As for clearing the global m, any function not called within the context of an object/associative array has access to the global m, so you could just create a standalone function to do that cleanup.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)