On Thu, 31 Jul 2008 16:22:01 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 31, 2008 at 2:59 PM, Boian Mitov <[EMAIL PROTECTED]> wrote: > > Hmm... it looks almost one to one copy from our code in Version > > 4.0 of our libraries ;-) . Are you one of our customers, or you > > have simply come with the same idea as us? > > > I'm not Henri, but we did similar setting and auto-restoring mouse > cursors in our Delphi applications. I can't imagine why I never > thought of using the same idea for critical sections. :-) I think, this sounds like a misuse of interfaces. What you really need is an auto referenced class, that guarantees order and short life time. Mattias _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel