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

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Oct 29 15:42:23 CET 2009


2009/10/29 Mattias Gaertner <nc-gaertnma at netcologne.de>:
>
> It compiles here. Probably you use some special units.

Weird... As I mentioned, I'm using FPC 2.3.1 (64bit) under Linux and
$mode objfpc.

>
> Graeme, why don't you just change the type of 'Text' to string?

That's the plan - eventually. But the code is large and PChar is
passed around all over the place. So changing that one field to String
type has a snowball effect on parameter types etc... Something I don't
have time for right now.  But yes, I eventually want to change all the
PChar's to String type. I already replace the PString types with
standard String.



-- 
Regards,
  - Graeme -


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



More information about the fpc-pascal mailing list