[fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?
graemeg.lists at gmail.com
Mon Dec 11 08:41:53 CET 2006
On 12/8/06, Micha Nelissen <micha at neli.hopto.org> 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
This is the one I tried as well. Quite nice, except for the memory
leaks at the 'inherited' call.
There's no place like S34° 03.168' E018° 49.342'
More information about the fpc-pascal