Hi Ross, On 12/05/13 02:38, Ross Levis wrote: > > var > > a: pChar; > > b: pChar; > > begin > > a := 'abcdefghi'; > > b := 'jklmnopqr'; > > StrCopy(a,b); > > end; > > > > Question: Why does this code crash? >
A PChar is a pointer. You need to allocate memory to hold the data. cheers, Jan
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
