BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-18-2009, 08:39 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default I/O Error: output file: CS40-1.cod code section too large: 125700 bytes.

Please Login to Remove!

Hi all,

We are porting a J2ME application to black berry,when we tried to create .cod file using RAPC compiler we got following error.

" I/O Error: output file: CS40-1.cod code section too large: 125700 bytes."

We checked few threads but it doesn't helped out.
I/O Error: binary resource too large


Can any one help us to come out of this????

Note:
1) We have a class file of 42300 lines and 600 variables declared in it.
2) We created different class file and shifted 250 variables from the above class to avoid the following error:
"CSCanvas: Error!: Field offset too large for: m_nCPListCount"

CSCanvas: Error!: Field offset too large for: m_nCPListCount


regards,
ajj
Offline  
Old 03-18-2009, 12:53 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You are going to have to refactor that big class.

You can have only 64K code and 64K data in a single COD file.
Offline  
Old 03-19-2009, 11:32 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Dougsg38p,

Thanks for the quick reply.

regards,
ajj
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.