"joetesta" wrote:
Thanks for your help EnTerr!
I'm trying as you suggested, after stop, when i enter 'bsc' a ton of stuff scrolls by, all sorts of things: roAssociativeArrays, roStrings, roInts, roVideoPlayerEvents
but what does this tell me; can i find what's referencing and clear up all this stuff?
BrightScript Debugger> bsc
roGlobal refcnt= 1
roIntrinsicDouble refcnt= 2
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 2
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 2
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roIntrinsicDouble refcnt= 1
roAssociativeArray refcnt= 2
roString refcnt= 1 [foreground]
roString refcnt= 1 [EXIT_UNKNOWN]
roString refcnt= 1 [homescreen]
roString refcnt= 1 [3000]
roAssociativeArray refcnt= 5
roAssociativeArray refcnt=24
. etc...
here is the summary;
BrightScript Debugger> bscs
roArray: 8094
roAssociativeArray: 17617
roBitmap: 54
roBoolean: 12
roByteArray: 1
roCaptionRenderer: 1
roCaptionRendererEvent: 57
roCompositor: 1
roDateTime: 2573
roDeviceInfo: 5
roFilesystem: 1
roFont: 8
roFontRegistry: 1
roFunction: 20
roGlobal: 1
roInt: 232
roIntrinsicDouble: 107
roList: 1
roMessagePort: 1
roRegion: 51
roScreen: 1
roSprite: 57
roString: 64806
roTextureManager: 1
roTimespan: 19
roUrlTransfer: 5
roVideoPlayer: 1
roVideoPlayerEvent: 139
Total # components: 93867
Having a bunch of event objects (roCaptionRendererEvent and roVideoPlayerEvent) seems unusual to me.
Are you storing references to those events when your receive them?
Also, 2573 roDateTime seems extreme.
Perhaps you could track through the creation and storage of some of those objects, to see if they are being references from some global data structure unnecessarily?