theSmaw
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2013
02:30 AM
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?
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?
5 REPLIES 5
Gilgamesh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2013
06:33 AM
Re: BrightScript - limit on number of functions

RokuDavidM
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2013
08:49 AM
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
David

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2013
11:38 AM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2013
11:47 AM
Re: BrightScript - limit on number of functions
Have you seen this: viewtopic.php?f=34&t=56638
theSmaw
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2013
12:30 PM
Re: BrightScript - limit on number of functions
Brilliant, thanks guys