> I'm sorry to still be asking about this but I am at the end of my tether.
> name = (CharPtr)MemPtrNew(StrLen{in_name));
> StrCpy(name, in_name);
>
> Any ideas why that doesn't work?
Off the top of my head? When dealing with strings, add one.
I didn't really look very hard at your code, but one of those
"I've seen this a thousand times before" bells went off.
Try (StrLen(in_name)+1).
Let me know if it works. If so, I owe myself a cookie.
-- Erica
- RE: More memory problems..... Mike Pellegrino
- RE: More memory problems..... Kenneth Albanowski
- Re: More memory problems..... Jason Dawes
- More memory problems..... Neil Davidson
- RE: More memory problems..... Mike Pellegrino
- Re: More memory problems..... Chris Antos
- RE: More memory problems..... Erica Sadun
- RE: More memory problems..... Alan Pinstein
- RE: More memory problems..... Mike Pellegrino
- RE: More memory problems..... Kenneth Albanowski
- RE: More memory problems..... Alan Pinstein
- RE: More memory problems..... Steve Patt
- Re: More memory problems..... Danko Radic
- RE: More memory problems..... Paul Todd
- RE: More memory problems..... Mike Pellegrino
- RE: More memory problems..... Alan Pinstein
- RE: More memory problems..... Bob Ebert
