At 12:51 PM -0500 2001/07/16, Jeremy Nuss wrote:
>MemPtrResize(string, sizeof(char *) * CurrentNumberofStrings + sizeof(char
>*));
>string[CurrentNumberofStrings] = (char *)MemPtrNew(StrLen(ptr) + 1);  //
>line that POSE indicates problem
>CurrentNumberofStrings++;
>
></code>
>
>Now, that works the *first* time I call this code, but on a subsequent call
>I get the error.
>
>Anyone know why?  I really appreciate any feedback.

Where's your code to validate the success of MemPtrResize prior to writing the 
CurrentNumberofStrings element? Sounds like POSE is telling you it didn't succeed... 
that you're writing to memory outside your allocated chunk. Just a guess.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


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