[fpc-pascal] PChar -> AnsiString -> PChar = memory leak?

Marco van de Voort marcov at stack.nl
Thu Oct 29 20:16:38 CET 2009


In our previous episode, Henry Vermaak said:
> >
> > Trying what you suggested, I get the following compiler error.
> >
> > project1.lpr(20,11) Error: Incompatible types: got "PString" expected "PChar"
> 
> This is probably dependant on compiler modes?

No, probably mixed sysutils and strings(?) use. pstring is defined in both
TP and Delphi. Once to short, once to ansistring
 



More information about the fpc-pascal mailing list