RAD Studio (Common)
ContentsIndex
PreviousUpNext
x2243: Expression needs no Initialize/Finalize (Delphi)

You have attempted to use the standard procedure Finalize on a type that requires no finalization.

program Produce;

  var
    ch : Char;

begin
  Finalize(ch);
end.

In this example, the Delphi type Char needs no finalization.  

The usual solution to this problem is to remove the offending use of Finalize.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!