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: 
cpjamloki
Visitor

how much internal Storage have a Roku device

i have some query:
(1) how much internel memory have roku device? from where i can get information about internal storage of a individul device(especially roku2 device) .?

(2)As i am storing some images it's temp directory, and then animating these images. on click on different option(different button) images coming a/c to options, i am storing these images in temp and then animate these one by one, which is working good but when i am switching on options frequently i mean pressing button ->images coming->storing in temp->animate one by one..
 bitMap=createobject("roBitmap", images coming here which are stored in temp)

after some time bitMap is giving invalid(not creating bitmap)
i am not understanding if images are coming here why its not creating bitmap...is it storage problem.
one more thing each time i am creating directory and delete it on each call(during download new images).
m.LocalFileBrowser = CreateObject("roFileSystem")
TmpFile_directory = m.LocalFileBrowser.Exists("tmp:/OverlayImages")

if(TmpFile_directory<>invalid)
isDirectoryDeleted = m.LocalFileBrowser.Delete("tmp:/OverlayImages")
End if
CreateDirectory("tmp:/OverlayImages")


i am storing images under OverlayImages directory.
0 Kudos
2 REPLIES 2
RokuJoel
Binge Watcher

Re: how much internal Storage have a Roku device

Invalid bitmap usually means you have run out of graphics memory, not out of tmp space. Unload some bitmaps and call swapbuffers() or finish() to release the space.

- Joel
0 Kudos
cpjamloki
Visitor

Re: how much internal Storage have a Roku device

i have used both swapbuffers() or finish() but same problem is coming. as u suggested "Unload some bitmaps":----- i am recreating directory after deleting it, it means whole images delete stored under directory.

it is working in starting good but as i am navigating more(each time getting overlay images for different option ) and more then this problm occur.
0 Kudos