At 04:36 PM 18/2/2002 -0800, you wrote:
>--- Venugopal B wrote:
> > I added a member variable(UInt16) to one of the structs
> > ...
> > "The application has just overflowed the stack."
> >
> > If I comment out the new member variable that I added
> > then things seem to work fine.
>
>So, it seems obvious that you are declaring a stack based variable of
>that structure type, and that is too big for the stack.  The stack on
>Palm OS devices is really small. (It's documented somewhere, but I
>forget where.)

It is not too obvious to me. Adding one int usually wouldn't cause this 
unless an array of these objects is being allocated on the stack, (or you 
are just *really* close to the end of the stack).

As you didn't specify whether you were recreating your DB objects after 
changing the structure, I was wondering if perhaps you get garbage in some 
structure member which is causing the stack overflow.

Matt


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