Groups > Symbian > Symbian EPOC Java > EIKON-LISTBOX 26 Error




EIKON-LISTBOX 26 Error

EIKON-LISTBOX 26 Error
Wed, 30 Aug 2006 14:54:39 +010
Hello,

I have written a fairly substantial J2ME midlet and have been having 
perennial problems with this error message appearing when I run it on a 
Nokia 9500 Communicator:
Program: jes-11d-javax.microedition.lcdui1@14265d
Reason code: EIKON-LISTBOX
Reason number: 26

My midlet runs fine on the Sony erricson emulator and on a Sony erricson 
P900 phone.  I think it is something to do with my dynamically removing and 
adding items (plus changing the selected item) on a listbox.

I've searched around on the Nokia forums but can only find references to a 
similar EIKON-LISTBOX 4 error.

Has anyone seen this before and does anyone know of a workaround?

thanks in advance,
Anthony Green

--------------------------


Here is a snippet of the code that I think might possibly be causing the 
error:

  // de-select the currently selected item in an attempt to prevent the 
EIKON-LISTBOX error on the Nokia 9500 phone
   if (((List)screen).getSelectedIndex() >= 0){
    int selectedIndex = ((List)screen).getSelectedIndex();
    selectedService = (Service) services.elementAt(selectedIndex);
    ((List)screen).setSelectedIndex(selectedIndex, false);
   }
   ((List)screen).deleteAll();

<snip>
<Do some enumeration that results in a few of these:>
((List)screen).append( nextService.getDescName(), tickImage);
<or these> ((List)screen).append( nextService.getDescName(), null);

if (services.contains(selectedService)){
    if (services.indexOf(selectedService) < ((List)screen).size()){
     ((List)screen).setSelectedIndex(services.indexOf(selectedService), 
true);
    }
   } 

Post Reply
about | contact