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: 
tifroz
Streaming Star

variable descriptions in the debugger (refcnt? count?)

Looking at some of the variable description output of the brightscript debugger, I am not sure how to interpret every piece of data, I would appreciate if someone could help fill in the blanks?

For example:
m                roAssociativeArray refcnt=5 count:14

OK..so clearly the variable 'm' is of type roAssociativeArray, I assume it is referenced by 5 other objects in the memory graph (refcnt)? which would be useful for troubleshooting memory leaks.

What is count:14 though?
0 Kudos
2 REPLIES 2
EnTerr
Roku Guru

Re: variable descriptions in the debugger (refcnt? count?)

"tifroz" wrote:
What is count:14 though?

It contains 14 elements. Compare to
Brightscript Debugger> ? m.count()
14
0 Kudos
tifroz
Streaming Star

Re: variable descriptions in the debugger (refcnt? count?)

Doh!!

Thank you 🙂
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!