I am trying to add information to MemoPad from a PQA.  note and note2 parse
fine and I can add them to MemoPad as one long string.  The problem occurs
when I do a StrCat.  Line 1 works fine but line 2 crashes the Palm.  I get
Memory manager has written to Memory data structures.  However, in the
MemoPad, the memo was written correctly.   note and note2 are CharPtr.
Any light to this problem would be welcome.

1 StrCat(note,"\n");
2 StrCat(note2,"\n");

this is a piece of the code that writes to the memo pad:
if (MemoDB) {
 newMemoHandle = DmNewRecord(MemoDB, &index, noteLength + noteLength2);

if(newMemoHandle) {
   newMemoPtr = MemHandleLock(newMemoHandle);

   DmWrite(newMemoPtr, 0, note, noteLength);
   DmWrite(newMemoPtr, noteLength - 1, note2, noteLength2);




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