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: 
Komag
Roku Guru

Re: roRegistry Transient Storage

It returns False, but definitely behaves like Transient. I don't know what the upper limit is (Roku memory?). Sounds like this is definitely a bug.

In console I tested:
sec = CreateObject("roRegistrySection", "test")
FOR i = 1 to 50000: sec.Write(i.ToStr(), i.ToStr()): END FOR
? sec.Flush()


Then I exited channel (Home), opened another channel, exited it, reloaded channel, and entered in console:
sec = CreateObject("roRegistrySection", "test")
FOR i = 1 to 50010: ? i ", " sec.Read(i.ToStr()): END FOR


I've only tested on my Roku HD 2500, Software 6.2 build 3471
0 Kudos
RokuMarkn
Visitor

Re: roRegistry Transient Storage

So the Flush is telling you that it failed to write the data to storage. The question is what is the best behavior at that point? Currently it apparently just leaves the data in memory and it is still accessible until the next reboot. An alternative would be to discard all the data in memory when a Flush fails. The latter is probably better although I can imagine some cases where the developer might prefer the current behavior. I'll file a bug and we'll review it, but if that's the behavior you want right now, you may want to just Delete all your registry sections when Flush fails.

--Mark
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.