BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-15-2009, 10:57 AM   #1
BB1364
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Default Uncaught Exception: Index 58>=58

Please Login to Remove!

Hi

I have a application which stores some data in the cache. Now the app completely works fine on the device. But when i change my source such that the storage of the data in the cache is changed (I now store more data in the new version of my app).
When i install this new version in the device , the device shows the "
Uncaught Exception Index 58> = 58" . and I am not able to open the app.

Does anyone can give some light what could be the possible reason of such error.

Thanks
Offline  
Old 07-15-2009, 11:22 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

This is an array index issue.

You have declared an array of size 58, but you are trying to add a 59th item to it.

The valid indexes for this array would be 0-57

Example: byte[] foobar = new byte[58];

If you now attempt

byte[58] = 'F'

...you will get the above error.
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


Schneider 140CPU65150 processor module 140CPU65150 140CPU65150 picture

Schneider 140CPU65150 processor module 140CPU65150 140CPU65150

$2898.00



Olympus OTV-S5 Video Endoscopy Camera Controller Video Processor Unit picture

Olympus OTV-S5 Video Endoscopy Camera Controller Video Processor Unit

$150.00



QTY 10 AD9826KRSZRL IC COMPLETE 16-BIT IMAGING SIGNAL PROCESSOR 28-SSOP AD9826 picture

QTY 10 AD9826KRSZRL IC COMPLETE 16-BIT IMAGING SIGNAL PROCESSOR 28-SSOP AD9826

$129.00



AlphaSmart Neo2 Laptop Word Processor Portable Notebook Pad picture

AlphaSmart Neo2 Laptop Word Processor Portable Notebook Pad

$89.97



Allen Bradley 1761-L32BWA MicroLogix 1000 32-Point PLC Module Series E (UNUSED) picture

Allen Bradley 1761-L32BWA MicroLogix 1000 32-Point PLC Module Series E (UNUSED)

$350.00



Siemens 6FX1138-5BB04 Sinumerik Circuit Board CPU picture

Siemens 6FX1138-5BB04 Sinumerik Circuit Board CPU

$199.99







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