BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-15-2009, 10:57 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (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

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


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

Yealink W52P VoIP IP DECT Phone w 1 used handset & 4 BRAND NEW handsets
$304.66
Yealink W52P VoIP IP DECT Phone w 1 used handset & 4 BRAND NEW handsets pictureCisco CP-7911g VoIP Phone Used (Lot of 5)
$55.0
Cisco CP-7911g VoIP Phone Used (Lot of 5) picture3Com NBX 3102 Voip Business Phone
$19.99
3Com NBX 3102 Voip Business Phone  pictureNortel IP 1110 Voip Phone (NTYS02) - Used
$19.0
Nortel IP 1110 Voip Phone (NTYS02) - Used pictureLG Nortel IP8820 IP Business Backlit Display Phone, VoIP, PoE N0199942 - NEW
$9.99
LG Nortel IP8820 IP Business Backlit Display Phone, VoIP, PoE N0199942 - NEW   picture






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