Tim Lock wrote:
>
> I'm having trouble allocating memory for this structure.
>
> char outbuffer[1024];
>
> typedef struct
> {
> char **name;
> int *idx;
> int total;
> }AddrRecord;
>
> addrList.name[addrList.total]=(char*)MemPtrNew(StrLen(outbuffer)+1);
You probably haven't allocated memory for "name" itself.
The variable names suggests that addrList should be a list of AddrRecs not
a single AddrRecord. This looks strange, but looking at code out of context
I may be in err :-)
Regards,
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
[EMAIL PROTECTED] http://www.klawitter.de/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/