Forum Discussion

theSmaw's avatar
theSmaw
Visitor
12 years ago

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?
  • 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
  • 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).