> Guys,
> Is there any other way to write to a dynamic array of integers other
> than:
> UIntPtr recIds;
> UInt numRecords;
> UInt Index;
> recIds[numRecords]= Index;
>
> as this causes a fault in POSE "...has just written directly to memory
> manager data structures".
of course, you have not initialized the pointer.. :))
{
recIds = (UInt16 *)MemPtrNew(sizeof(UInt16) * numRecords);
recIds[index] = ...; // 0 < index < numRecords
MemPtrFree(recIds);
}
cheers
// az "why did i only sleep 4 hours last night :("
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/