Try replacing
Char *encDate = "34857384573498573498";
with
Char encDate[] = "34857384573498573498";
Also, have you try the following before?
StrCopy(record.Date, "34857384573498573498");
On 1 Apr 2002 at 19:02, Ed wrote:
> With the code below, I get the following error:
>
> "just read from memory location 0x003CD32, which is in the unused portion
> of the stack. The stack range is ... - ... and the stack pointer is ..."
>
> This does not happen everytime. Any ideas?
>
> Thanks,
> Ed.
>
>
> Borislav Kolev wrote:
>
> > The I can only assume what you have left out of your example, but with
> > these assumptions it is correct it should be
> >
> > typedef struct RecData {
> > Char Date[256];
> > } RecData;
> >
> > void AddToDateDatabase(RecData* v);
> >
> > void foo()
> > {
> > RecData record;
> > Char *encDate = "34857384573498573498";
> > StrCopy(record.Date, encdate); // Generally
> > better
> > use StrNCopy() and clear out the last Char (not byte!)
> > error = AddToDateDatabase(&record);
> >
> > }
> >
> > And this seems to be fine.
> >
> > - bobby
> >
> > --
> > 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/
>
>
John Leung
[EMAIL PROTECTED]
http://persweb.direct.ca/jleung
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/