> (rec is a structure)

Of course rec is a structure. But what is "rec.Name"?  Is it an array?  If so,
is it large enough to hold the largest string from the Name array (including the
terminating NULL)?  Is it a pointer?  If so, did you allocate memory and
initialize the pointer?  If so, did you allocate enough memory?

-- Keith






"Denis Chai" <[EMAIL PROTECTED]> on 11/14/2000 04:30:10 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  "Denis Chai" <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/US/PALM)
Subject:  Writing Directly to Memory Manager Data Structure error



Hi guys,

I was hoping you would be able to help me out with something.
I get an error message saying:

"Application has just written directly to memory manager data structures.
This problem indicates an error in the application. Users should upgrade
this product immediately to safeguard their data."

This occurred after I added the following lines of code:
static Char* Name[ ] = { "Aaron", "Adam", "Adrian", "Alan", "Alex" };
StrCopy (rec.Name, Name[SysRandom (0) % 5]);

(rec is a structure)

Should I be copying it another way?

Thanks a lot,
Denis.




--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to