Developers

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?
Tags (1)
0 Kudos
4 REPLIES 4
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
Tags (1)
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)
Tags (1)
0 Kudos
RokuJoel
Binge Watcher

Re: BrightScript - limit on number of functions

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

Re: BrightScript - limit on number of functions

Brilliant, thanks guys
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!