Hi,

I got this strange error "MemoryMgr.c , Bad chunk header"
at the second FrmSetFocus statement in the code:

Can someone give me an idea as to where the problem with the code is...
Code is written to handle the login screen for the application and setting
the focus on login and password fields...
Code::

  case frmOpenEvent:
       FrmDrawForm(FrmGetActiveForm());
        recordH = DmQueryRecord(SiteDB, 0);
       recordP =(SiteDeptRecordTypePtr)MemHandleLock(recordH);
     MemHandleUnlock(recordH);
       if(focus!=0)
       {
          FrmSetFocus(frm, FrmGetObjectIndex(frm,
DataCollectorLoginPasswordFieldField));
       }
       else
       {
          FrmSetFocus(frm, FrmGetObjectIndex(frm,
DataCollectorLoginIDFieldField));
       }
       handled=true;
       break;

Does anyone have any idea as to what is causing the error.

Thanks in advance
Praveen




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