On 12/8/06, Micha Nelissen <[EMAIL PROTECTED]> wrote:
Michael Van Canneyt wrote:
>> Try this.
>> http://bdn.borland.com/article/22576
NewInstance/FreeInstance is what I would have recommended as well.
I haven't actually looked at that one yet, I looked at one based on
that, but allows for inheritance on a TSingleton base class. Running
it with FPC and Heaptrc unit, I found memory leaks. I'll try the one
from Borland.
This is the one I tried as well. Quite nice, except for the memory
leaks at the 'inherited' call.
http://www.skybound.nl/articles/delphi-singleton/
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal