The difference is that in the IDE you will need to add AddObject before the second "New".
There is no difference with the memory usage and the optimized compiler supports this AddObject as well.
The optimized compiler treats AddObject as a compiler directive. So calling it once (with AddObject or with Tools - Add Object) is enough.
|