BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-15-2008, 10:52 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8300
PIN: N/A
Carrier: AT&T
Posts: 25
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8330
PIN: N/A
Carrier: Telus
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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