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


RAM MODULE (COMES WITH WIRING HARDNESS) picture

RAM MODULE (COMES WITH WIRING HARDNESS)

$200.00



Tnt Rescue Equipment Hydraulic Ram R-30   724 picture

Tnt Rescue Equipment Hydraulic Ram R-30 724

$240.00



37061 - IMPERIAL RAM MODULE -  picture

37061 - IMPERIAL RAM MODULE -

$205.00



Double Acting Hollow Ram Cylinder (60 Tons - 2

Double Acting Hollow Ram Cylinder (60 Tons - 2") (YG-6050KS)

$549.00



Nuvo-3003LP Neousys GeoVision | i5-3210M@2.5GHz | 8GB RAM Windows Embedded PC picture

Nuvo-3003LP Neousys GeoVision | i5-3210M@2.5GHz | 8GB RAM Windows Embedded PC

$497.97



NCR 7616-1301 NCR 72XRT 15

NCR 7616-1301 NCR 72XRT 15" Retail POS Terminal with i3, 8GB Ram 250GB HD No OS

$239.20







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