The following code gives me this error when I run the emulator: "Application
has just written directly to memory manager data structures, this indicates
a problem". Now, Im not sure whether this means that I am Writing
*directly* to the variable I defined (heaven forbid, I even allocated memory
for it), or what. Here's my problematic code. Another thing to keep in
mind, I use a similar tactic elsewhere in the program without the emulator
complaining.
str = (char**)MemPtrNew(sizeof(char*)*totalItems);
for(i = 0; i < totalItems; i++, recordNum++)
{
VoidHand recordH = DmQueryRecord(gDataDB, recordNum);
Qual * ptr = (Qual *)MemHandleLock(recordH);
str[i] = (char*)MemPtrNew(StrLen(ptr->qual));
StrCopy(str[i], ptr->qual);
}
thanks in advance for any help.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/