> Does anyone know where I should look for this problem?

You say "...it gives me a NULL error or a Low Mem error".  From this, I assume
that you're using the Palm OS Emulator for development, since debugging on an
actual device or using the simulator library on the Mac won't generate this
error.  If that's the case, then I'm confused...why don't you click on the Debug
button in the dialog and be shown exactly where the problem is?

-- Keith Rollin
-- Palm OS Emulator engineer






"Timothy Astle" <[EMAIL PROTECTED]> on 02/09/2001 01:21:39 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  "Timothy Astle" <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/US/PALM)
Subject:  NULL error or Reading into Low Memory after list selection



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.
+++++++++++++






-- 
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