At 04:39 PM 3/2/99 +0000, you wrote:
>name = (CharPtr)MemPtrNew(StrLen{in_name));
>StrCpy(name, in_name);

You left off room for the terminating NULL.

name = (char*)MemPtrNew(StrLen(in_name)+1);

>
>The app still crashes when Max_Film_Num is any greater that 13.

Your problem is that you still think it has something to do with your
structure & the number of them you allocate.  This is probably quite
incorrect - most likely this is just a symptom of something wrong
elsewhere, such as forgetting to free memory correctly, as suggested by
other people.


Reply via email to