RAD Studio
ContentsIndex
PreviousUpNext
E2459: Delphi style classes must be constructed using operator new (C++)

Delphi style classes cannot be statically defined. They have to be constructed on the heap. 

 

voidfoo(void)
{
     Tobject   o1;     // Error;
     Tobject  *o2 = new TObject();
}
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!