MemPtrNew() and MemPtrFree are your friends Henk
Typical Joe wrote: > ; > >>>>CharPtr newTrackName = 0; >>>>StrCopy(newTrackName, p->TrackName); >>>> >>>You have to allocate the pointer before copying something in it. >>> >>> >>I'm not sure how I'd do this. I thought I already had... >> > > At the moment, new TrackName isn't pointing to anything, so you can't copy > anything to it. Try declaring newTrackName like so: > char newTrackName[]; > > newTrackName is still a pointer, but it's pointing to something now ( to the > start of an array of chars). > This may be the blind leading the blind, but I think I had a similar > problem. > > Feel free to correct me anyone ! > > > > > > > -- ------------------------------------------------------------------------- [EMAIL PROTECTED] www.metaviewsoft.de <A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946"> <IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg"></A> ------------------------------------------------------------------------- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
