[fpc-devel]Re: per-class memory manager

Aleksey V. Vaneev picoder at sbis.komi.ru
Tue May 22 19:57:55 CEST 2001


>>   Sorry, if this question was/is discussed somewhere. I just wanted to
>>   ask if it is possible to assign to a class a custom memory
>>   manager.
> It is not possible.

BTW, I've found a working way using getinstance and freeinstance. It
worked for me. But...

>>  Sometimes it is very efficient to allocate objects on a
>>   static memory pool.
> Maybe, but if  a descendent of the object would be made, then the size
> would increase, and this would create problems with the static memory pool.

Yes, this is a problem, but if class somehow "embedded" there is no
real problem (of course if everything that's necessary is documented).

Best regards,
 Aleksey                            mailto:picoder at sbis.komi.ru

More information about the fpc-devel mailing list