[fpc-pascal] PWideChar vs. ^

Marc Santhoff M.Santhoff at web.de
Fri Mar 13 17:46:16 CET 2009


Hi,

maybe this is a dumb question, but:

If I have a variable declared as

  var
    s: PWideString;

why is an exception (AV) thrown when using

    something := s^;

but not when using

    something := PWideChar(s);

?
Maybe this is special behaviour of the routine getting the variable, it
is

  TTreeView.AddChild(ParentNode: TTreeNode; const s: string): TTreeNode

TIA,
-- 
Marc Santhoff <M.Santhoff at web.de>




More information about the fpc-pascal mailing list