I just came by the problem recently.  Essentially, I am creating an instance
of a smaller structure, which is local to a function; therefore, is placed
on the stack.  I then take it and copy over all of the info placed in the
smaller structure into some bigger structure, which is not local.  What
happens is that the pointers from the smaller structure are now saved in the
bigger structure.  Then I am using the pointer from the bigger structure
elsewhere in my code and that is when it appears to be crashing.

I am pretty certain that is the problem.  I'm fudging with it right now as a
matter of fact.  Thanx for your time.

Regards,

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


----- Original Message -----
From: "Henk Jonas" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Saturday, November 16, 2002 3:47 PM
Subject: Re: Error translation...


> 0x00031640 < 0x0003CC00
> 0x00031640 + 0x001712B > 0x0003CC00
>
> so 0x003CC00 is inside your struct? Or do you mean &Y is 0x00031640 and
> Y is something else? Maybe you access the struct in a wrong way then?
> How do you do it?
>
> Henk
>
> Dan wrote:
> > 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.
>
> --
> -------------------------------------------------------------------------
> [EMAIL PROTECTED]                                       www.metaviewsoft.de
>
> <A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
> <IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg";></A>
> -------------------------------------------------------------------------
>
>
> --
> 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