Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
tifroz
Level 7

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
EnTerr
Level 8

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
Level 7

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

Doh!!

Thank you Smiley Happy
0 Kudos