Guys, I am doing a sequential search of one of my databases, and have
received the warning "...has just written directly to memory manager data
structures".  The app will then keep working (marginally) or doing anything
up to abnormal exit of POSE (I was rather impressed with that).  I have
isolated the dodgy code to the following:

*recIds declared*
UIntPtr recIds;
*recIds resized as neccessary as new records are found*
MemHandleUnlock(DbIdsHandle);
err = MemHandleResize(DbIdsHandle, indexBufSz*sizeof(UInt));
recIds = (UIntPtr)MemHandleLock(DbIdsHandle);
*recIds[numrecords], is assigned Index of typr UInt, index is the record
index for the record, this is used as the search includes a list for
multiple records under the one name.  This is where the error occurs
recIds[numRecords] = Index;

Regs Ian Alston


-- 
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