Shape_class=class(tobject)
Constructor create;
Destructor Demolish;
Public
Shape:tshape;
Shape_width,
Shape_height,
Shape_left,
Shape_top:integer;
End;
Function add_shape
:Shape_class;
Begin
Result:=shape_class.create;
End;
The code is simplified but illustrates what happens in my code. The call to the constructor is ignored by the debugger. If I hover the pointer over the class_name identifier in the call a hint informs me 'symbol eliminated by the linker'.
I have no idea what is causing this. I wondered if it has anything to do with the size of the stack, but increasing the stack makes no difference.