"Markus Dresch" <[EMAIL PROTECTED]> wrote:
>char **abcdef;
>abcdef = MemPtrNew(2);

This allocates room for 2 bytes, not 2 pointers.
It should be:

  abcdef = (char**)MemPtrNew(2 * sizeof(char*));

>abcdef[0] = MemPtrNew(4);
>abcdef[0] = "abc";

This should use StrCopy(), not assignment.  It's clobbering
the pointer to allocated memory with a pointer to the
static string.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to