Try replace the following line
Char *encDate = "34857384573498573498";
with
Char encDate[] = "34857384573498573498";
Also, have you ever tried the following before?
StrCopy(record.Date, "34857384573498573498");
On Mon, 01 Apr 2002 19:02:31 -0800, Ed <[EMAIL PROTECTED]> 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/