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

BrightScript - limit on number of functions

Apologies if BrightScript questions are meant to go elsewhere...

Plexinc states in his roku-client-public repository:

"The Roku BrightScript compiler enforces a limit on the number of functions that can be defined by an app. This is particularly evil because the limit is different for the 3.x and 4.x firmware--512 and 768 respectively"

https://github.com/plexinc/roku-client-public

I can't find this documented anywhere but Plexinc's repo. Is there further documentation to back this up? Is there a limit for the 5.x firmware?
0 Kudos
5 REPLIES 5
Gilgamesh
Visitor

Re: BrightScript - limit on number of functions

0 Kudos
RokuDavidM
Visitor

Re: BrightScript - limit on number of functions

The developer forum is a better place for this question, but this is an easy answer. The limit was raised to 65,536 in 4.10 (UK) and 5.x. It will be similarly raised for the legacy 3.x firmware in an upcoming release.


David
0 Kudos
TheEndless
Channel Surfer

Re: BrightScript - limit on number of functions

It is currently limited to 512 in 3.x. Exceeding 512 will result in a hard crash of the box upon launch (previously it resulted in a "Constant table limit exceeded" error upon compilation).
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
RokuJoel
Binge Watcher

Re: BrightScript - limit on number of functions

Have you seen this: viewtopic.php?f=34&t=56638
0 Kudos
theSmaw
Visitor

Re: BrightScript - limit on number of functions

Brilliant, thanks guys
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.