Re: How to allocate new class instance on the heap?



Just to make sure I understand you:

ClassInstanceVariable := tClassName.Create { ( <constructor
parameters>) };

This will allocate ClassInstanceVariable on the heap, and will not
automatically deallocate it when the function declaring
ClassInstanceVariable exits? Thanks.

.



Relevant Pages