Thank You Roger, that did the trick.
Brian
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 15, 2000 7:33 PM
Subject: Re: Debug nub
>
>
> >Now I get a error stating my program has "just written directly to memory
> >manager data" . This occurs when ever I do something like this
> >
> > strStartTime = MemPtrNew(StrLen(recordP->StartTime)) ;
> > StrCopy(strStartTime, recordP->StartTime);
>
> Try using
>
> strStartTime = MemPtrNew(StrLen(recordP->StartTime) + 1) ;
>
> to account for the string being null terminated by StrCopy.
>
>
> -Roger Flores
>
>
>