Hi,
I still get the error even after seperating the FrmGetObjectIndex() and now
i get the Bad Chunk header error at :
        pindex=FrmGetObjectIndex(frm, DataCollectorLoginIDFieldField);

Code:

 if(focus!=0)
       {
          FrmSetFocus(frm, FrmGetObjectIndex(frm,
DataCollectorLoginPasswordFieldField));
       }
       else
       {
        ErrDisplay("Error is coming...");
        pindex=FrmGetObjectIndex(frm, DataCollectorLoginIDFieldField);
          FrmSetFocus(frm, pindex);
       }


Also can you elucidate on this:
Aside from this you might also have a corruption of some sort.  Open
the form structure in the debugger and check that the properties all
look OK.  Store a pointer to the control which is erroring (or work
through the form's control array) and check that it's data is still valid.

If the control has a strange ID or x,y position this generally indicates
that a control earlier in the array (generally a label) is overwriting the
rest of the form data.

Thanks in advance
Thanks


"Chris Tutty" <[EMAIL PROTECTED]> wrote in message
news:LYRIS-40078-41857-2001.09.20-16.55.53--potinenip#[EMAIL PROTECTED]
s.com...
> "Praveen Potineni" <[EMAIL PROTECTED]> wrote
> > I got this strange error "MemoryMgr.c , Bad chunk header"
> > at the second FrmSetFocus statement in the code:
> >
> That's a message that could arise from a number of different sources.
> As a start I'd split the FrmGetObjectIndex call out to make sure that
> a valid parameter is being passed to FrmSetFocus.
>
> Aside from this you might also have a corruption of some sort.  Open
> the form structure in the debugger and check that the properties all
> look OK.  Store a pointer to the control which is erroring (or work
> through the form's control array) and check that it's data is still valid.
>
> If the control has a strange ID or x,y position this generally indicates
> that a control earlier in the array (generally a label) is overwriting the
> rest of the form data.
>
> Chris Tutty



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