RAD Studio
ContentsIndex
PreviousUpNext
E2459: Delphi style classes must be constructed using operator new

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!