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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory Management

Is there any way to detect that there is not any memory available besides the INVALID return on a CreateObject ?
Usually when this occurs, the INVALID, the Roku just reboots itself. Not very user friendly !
I would like to display an error and exit the app, rather than hang or reboot.
Even with the INVALID return, I can't display anything because that takes memory.
0 Kudos
Binge Watcher

Re: Memory Management

Getting invalid when creating a bitmap is your indicator that you have reached the limit of memory. Some channels actually use this as a method for testing how many bitmaps they can keep in memory at once.

If you are getting reboots, that means there is a bug that probably needs to be addressed. Please create a small example that can reproducibly demonstrates the reboot and email it to me (jbraverman at roku dot com), or dropbox me a link via Private Message, please include the model of device and firmware version.

- Joel
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.