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

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Oct 29 21:59:25 CET 2009


On 29/10/2009, Marco van de Voort <marcov at stack.nl> wrote:
>
>
> No, probably mixed sysutils and strings(?) use. pstring is defined in both
>  TP and Delphi. Once to short, once to ansistring

That that must be FPC that is getting confused. In Lazurus I when
"Project > New > Free Pascal application".  That's as basic as you can
get. The uses clause only had Classes and SysUtils in it.  No
TCustomApplication descendant or nothing, just a plain begin.... end.
in the project file with the code I posted before.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list