errBuff is defined as an array of 50 pointers to strings, not as an array of
50 strings.

"recText1=(char *)MemHandleLock(recHandle1);" retrieves the ptr to the
memory chunk of the record you retrieved.
"str1=recText1; " assigns the ptr to a temporary variable, which I assume is
defined as "Char * str1;"

I'm surprised that the "StrCopy(errBuff[j],", ");" didn't cause you a
problem, because unless you have initialized that array of ptrs so that each
entry in the array pointed to a string buffer area, it should be a bunch of
NULLs.

If you put in a loop that allocates a string buffer for each of those 50
errBuff entries, you'll make some progress towards your goal.  But, you'll
still have a long way to go.

It looks like you might need some basic training in the proper use of
strings and ptrs in "C".

Regards,

Terry



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