At 5:37 PM -0800 2000/02/01, Dalmer Azevedo wrote:
>untitled 1.0 Has just read from memory manager data structures. This happens
>in the DmWrite call.  The strange thing is I am locking the memory before
>writing on it.
>Why is it complaining? Does it have to do with C++? Any thoughts?

What's the value of sizeof(OfflineRecord)? If it's greater than one you have a problem 
doing

  err = DmWrite( p, 0, &zero, sizeof(OfflineRecord) );

because you're reading past the Char zero on the stack. DmWrite is basically

  MemMove(dstP + offset, srcP, bytes);

with a storage heap memory protection wrapper. So, it's not a C++ specific problem.

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to