Could you tell us where exactly the debugger points out the error.


-----Original Message-----
From: Lauren B. Robert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:58 AM
To: Palm Developer Forum
Subject: Requesting help please~!!!


Hi All,
  I'm new in this forum and hope somebody can give me some wise advices to solve my 
problem. I had a dynamic popup list displaying a list of databases, and other dynamic 
list to display the records in the selected database. I had done the following codes..

static Boolean MainHandleEvent(EventPtr eventP)
{
    Boolean handled = false;
    FormPtr frmP;

    switch (eventP->eType) 
    {
     case lstSelectEvent:
      if (eventP->data.lstSelect.listID == MainDBSelectList) {
        Int16 theSelection;
        Char *theText;
        const int kCardNumber = 0;
        Err             err;  
        LocalID dbID;

      theSelection = eventP->data.lstSelect.selection;
      theText = LstGetSelectionText(eventP->data.lstSelect.pList, theSelection);
      //Get a pointer from Selected DB and Find
      // the database   
      dbID = DmFindDatabase(kCardNumber, theText); 
        if(!DbID)
         err = dmGetLastErr;    
        else {
         gDatabase = DmOpenDatabase(kCardNumber, dbID, dmModeReadOnly);
        if(!gDatabase)
         err = dmGetLastErr;
        }
                         
lstP = (ListType *) FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, MainDBListList));
        FillListWithDB(lstP); //Dynamic Function
        LstSetSelection(lstP, 0);
  }

When I compile, there's no errors. But when I debug in POSE, I had a error saying 
"read from location 0x00000006, which is in low memory". After I press the Continue 
button, I had to do a reset. I'm not sure what's wrong. Can somebody help me?
Sorry for the long post. Many Thanks.

Regards,
Lauren

  


_____________________________________________________________
Play the Elvis� Scratch & Win for your chance to instantly win $10,000 Cash
- a 2003 Harley Davidson� Sportster� - 1 of 25,000 CD's - and more!
http://r.lycos.com/r/sagel_mail_scratch_tl/http://win.ipromotions.com/lycos_020801/index.asp?tc=7087
 

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

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

Reply via email to