[fpc-pascal] Converting StrLCopy to widestrings
marc at dommelstein.net
Sun Nov 18 14:11:20 CET 2007
Felipe Monteiro de Carvalho wrote:
> On Nov 17, 2007 1:25 PM, Marc Weustink <marc at dommelstein.net> wrote:
>> First question, why is the copying needed ?
>> Why isn't lpStrFile := PWChar(FileNameWide);
>> simply enough ?
>> IMO, you're copying way to much.
> That variable is only valid on the scope of the function, and we need
> something more permanent.
I need to review the code in that area, imo it is not needed.
anyway when is the allocateed memory freed ?
More information about the fpc-pascal