Hi,

I have an application which declares a global struct:

typedef struct
{

   Char textField1[TEXT_FIELD_1_LENGTH + 1];
   Char textField2[TEXT_FIELD_2_LENGTH + 1];
   Char textField3[TEXT_FIELD_2_LENGTH + 1];

} ApplicationRecordType;

The app runs fine on the simulator, but on the emulator dies with:

"Application has just read directly from memory manager data structures."
at what I believe is the point where I my app does this:


void SetTextField3 (CharPtr textfield3)
{
   MemCopy (ApplicationRecord.textField3, textfield3,
sizeof(ApplicationRecord.textField3));
 }

Can anyone tell me why this is bad, and what I should be doing to fill the
structure?

----------------------
Michael Hutchens
[EMAIL PROTECTED]


Reply via email to