>this means you wrote off the end of the memory block.

No, it means that he *read* off the end of a memory block.  It's more
likely that the buffer pointed to by "textfield3" (the second parameter
passed to MemCopy), is smaller than "sizeof(ApplicationRecord.textField3)".
Which still means that the "TEXT_FIELD_2_LENGTH" thing is suspicious.

-- Keith Rollin
-- Palm OS Emulator engineer





"Chris Antos" <[EMAIL PROTECTED]> on 04/02/99 01:25:19 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (Keith Rollin/HQ/3Com)
Subject:  Re: Direct read from data manager structures error...




i don't think Simulator does memory checking, hence no error there.
>typedef struct
>{
>
>   Char textField1[TEXT_FIELD_1_LENGTH + 1];
>   Char textField2[TEXT_FIELD_2_LENGTH + 1];
>   Char textField3[TEXT_FIELD_2_LENGTH + 1];
>
>} ApplicationRecordType;
perhaps you have a typo?  shouldn't field 3 be using TEXT_FIELD_3_LENGTH?

>"Application has just read directly from memory manager data structures."
>at what I believe is the point where I my app does this:
this means you wrote off the end of the memory block.











Reply via email to