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