I should add something to this query actually...

I have this variable which is a pointer that is outside of the stack range
that the error message mentioned.  In fact, the address of this pointer
variable (we can call it Y) is 0x00031640.  Now, this variable points to a
structure whose size is 1712B.  When I access beyond a certain member in the
structure, I get the error mentioned.  Now, if Y weren't a pointer, I think
I would have gotten a stack overflow error instead of what I got.

Regardless, what's the deal here?  Why is the PalmOS sticking local pointers
like Y in such an address space where certain dereferences will point inside
of the stack space?

Thanx,

Daniel Suleski :->
TD, Mysticware Inc.
www.mysticware.com


"Dan" <[EMAIL PROTECTED]> wrote in message news:101294@;palm-dev-forum...
>
> Hi everyone.  I have an error message that is appearing as a result of a
> hard crash.  The error message is...
>
> "PalmEngine (1.0) just read from memory location 0x0003CC00, which is in
the
> unused portion of the stack.  The stack range is 0x0003C504 - 0x0003D2B2,
> and the stack pointer is 0x0003D110.
>
> The "stack is the area of RAM used to contain function parameters and
local
> variables.  The used portion of the stack is indicated by the stack
pointer.
> Applications may access the area of the stack above the stack pointer, but
> not below it."
>
> Any ideas on common reasons this error message occurs?  This program is
also
> the one that was discussed in my previous thread that had to do with
> multi-segmenting/global problems.
>
> Regards,
>
> Daniel Suleski :->
> TD, Mysticware Inc.
> www.mysticware.com
>
>
>
>
>



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

Reply via email to