--- Dan Dorton <[EMAIL PROTECTED]> wrote:
> <snip>
> Here is the beginning of the packrecord function that is called from
> above.  While the error occurs in this function, I don't think the
> problem is in this function as it works fine when called in other
> places.
> 
> UInt16 PackRecord(CRecipientPtr pSrc, CRecipientPackedPtr pDest)
> UInt16                size;
> UInt16                offset = 0;
>       
> pSrc->m_FieldFlags.m_ByFields = 0;
>       
> // Skip Field Flags
> offset += sizeof(RecipientFieldFlags);
> 
> size = sizeof(AddressTargetTypeConstants);
> 
> // The error is happening on the following line       
> DmWrite(pDest, offset, &pSrc->m_Target, size);

DmWriteCheck is called by DmWrite to make sure that the arguments you
pass in are reasonable -- pDest points to a data storage chunk, offset
+ size is within that chunk, etc.

Why not set a break point at the start of PackRecord and check these
things with the debugger?  Then you'll know exactly what caused the
error and you can trace back through your code from that point.


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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

Reply via email to