I'm using a callback to populate a list from a database.  It's pretty much a
match of the CodeWarrior Tutorial in Chapter 8.  *I think*

My list is drawn, the correct items are in it, but whenever I select an item
from the list, it gives me a NULL error or a Low Mem error.  I read in past
newsgroup postings that this can be due to not setting the Pop-Up trigger
label, so I'm trying that.  (No luck so far)

Does anyone know where I should look for this problem?  I'm unable to do my
normal debugging until I'm sent my Palm replacement next week :-(

The following is a snippet from my event handler, just incase this is my
problem.

case lstSelectEvent:
       // Get pointer to List
       lst = GetObjectPtr(NfoGeneralVehicleNumberList);

       // Get the current index in the list
       tblPvnoCurRecord = LstGetSelection(lst);

       // If it exists... Set the new label for the trigger.
       CtlSetLabel(GetObjectPtr(NfoGeneralVehicleNumberPopTrigger),
                            LstGetSelectionText(lst, tblPvnoCurRecord));

       handled = true;
       break;


+++++++++++++
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+++++++++++++

"People who can smile when things go wrong has thought of someone else to
blame it on."



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to