I can't post the entire class, but here is the offending class function:
typedef struct {
long mModifiedFields;
long mUniqueId;
long mDateA;
long mDateB;
long mDateC;
long mDateD;
long mPosition;
Byte mItemA;
Byte mItemB;
Byte mItemC;
Byte mItemD;
long mRepeatDate;
UShort mRepeatInterval;
char mName;
} RecType;
Err CXYZItem::ChangeRecordItemA(void)
{
Err err;
VoidHand recordH;
XYZRecTypePtr src;
XYZRecTypePtr nilP = 0;
// Get and Lock the record which we are going to change
recordH = DmQueryRecord(m_DmOpenRef, m_Index);
src = static_cast<XYZRecType *>(::MemHandleLock (recordH));
err = ::DmWrite (src, (ULong)&nilP->mItemA, &mItemA, sizeof(src->mItemA));
MemPtrUnlock (src);
return err;
}
-----Original Message-----
From: Richard Hartman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 30, 1999 6:46 PM
To: '[EMAIL PROTECTED]'
Subject: RE: DmWrite behavior.
And the code you were using to write these members?
(You posted pseudo-code before...)
--
-Richard M. Hartman
[EMAIL PROTECTED]