BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-15-2008, 10:52 AM   #1
Massif
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Default I/O Error: binary resource too large

Please Login to Remove!

I'm trying to compile using JDE 4.0 (for compatibility reasons) and I keep gettings the following message:

I/O Error: binary resource too large: C:\workspace\MyProject\fifthqs.dat is 74519 bytes

If I replace fifthqs with a file that is smaller (about 36KB) everything works fine. I could try chopping the file in half and recombining it in the code, but I'd rather not resort to that.

Is there any way to get around the file size limit?
Offline  
Old 05-15-2008, 11:02 AM   #2
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

i see what your problem is - your binary resource is too large.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 05-15-2008, 11:50 AM   #3
Massif
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Default

Well I decided to try JDE 4.1.0 and it works with the larger files.
Offline  
Old 05-16-2008, 10:49 AM   #4
Massif
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Default

I just got a similar problem on another project. This time the error is:

I/O Error: output file: MyProjectBlackBerry-1.cod code section too large: 68752 bytes.

Does this mean there's too much code? Or is it just too much code in one file/class? Can I break it up?

There's about 14000 lines (I didn't write it, I'm just porting it to BlackBerry).
Offline  
Old 05-17-2008, 06:11 PM   #5
rab1
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8300
PIN: N/A
Carrier: AT&T
Posts: 25
Default

Quote:
Originally Posted by Massif View Post
I just got a similar problem on another project. This time the error is:

I/O Error: output file: MyProjectBlackBerry-1.cod code section too large: 68752 bytes.

Does this mean there's too much code? Or is it just too much code in one file/class? Can I break it up?

There's about 14000 lines (I didn't write it, I'm just porting it to BlackBerry).
Let the compiler limit the size of the generated cod files.
You do this by adding the following to the compiler commad: -vtablefull = size; where size could be 20000 for example. It has to be less than 64k.
So your command will start like this:

C:\Program Files\Research In Motion\BlackBerry JDE 4.0\bin\rapc.exe" -vtablefull=20000 ...etc

Rab
Offline  
Old 05-18-2008, 06:13 PM   #6
Massif
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Default

I just tried that and it doesn't seem to work. I decided to factor some of the methods out into another class and that seems to have fixed the problem. It also appears that making variables and methods static removes them from the total size of the data and code sections respectively.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Good Chimera Dongle for All Modules Samsung HTC BLACKBERRY NOKIA LG HUAWEI picture

Good Chimera Dongle for All Modules Samsung HTC BLACKBERRY NOKIA LG HUAWEI

$307.22



Hypothermias BLACKBERRY  🍧 Snow Cone machine Shaved Ice Flavor Syrup GALLON picture

Hypothermias BLACKBERRY 🍧 Snow Cone machine Shaved Ice Flavor Syrup GALLON

$26.96



Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh picture

Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh

$219.95



Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5 picture

Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5

$124.95



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$125.58



Cutter & Buck Genuine Leather Tri-Fold Portfolio “Blackberry Boot Camp 2010” picture

Cutter & Buck Genuine Leather Tri-Fold Portfolio “Blackberry Boot Camp 2010”

$19.99







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.