This is PointClass.pas and main.pas I compile with This can pass the compiler, but when I run program, its said : I try so hard, and search a lot, but still can’t solve this problem. (Sorry for my bad English!) Answer I found it. main.pas is wrong : The correct line is :