
+5
Planned
Warning request: Calling FreeAndNil on an interfaced type
var
List : IList<Integer>; // A Spring4D list
...
FreeAndNil(List); // <- bam!
It shouldn't be possible to call Free since you can only call methods defined in an interface on an interfaced type, but FreeAndNil doesn't have any checking and will compile happily with the above code.
List : IList<Integer>; // A Spring4D list
...
FreeAndNil(List); // <- bam!
It shouldn't be possible to call Free since you can only call methods defined in an interface on an interfaced type, but FreeAndNil doesn't have any checking and will compile happily with the above code.

0
Planned
Roman 10 years ago
Customer support service by UserEcho