What are the different types of object allocations methods in Delphi?

What are the different types of object allocations methods in Delphi?



- The object allocation can be done using the referencing type. This allows the object to be referenced so that no memory leak occurs.

- Call routines are used to create the objects and used in the allocation process.

- Use of Run Time Library functions allows the memory to be allocated to the current object that is in use.

- The use of the functions or methods like FindFirst, FindNext and FindClose makes it possible to allocate the memory to the object.

- Allocating the memory to the object by value is being considered as the copy gets created and it doesn’t harm the actual object.
Post your comment