> I use singletons in the following cases. The problem with using singletons in this way is that they're not [very] thread safe. You end up needing a locking mechanism that gets tiring very quickly. I can't offer you a better solution, but I have worked on a project where it was a real problem, and so speak from experience. If you go down this route, you kind of force single threadedness on to your application - which obviously might be what you desire. Retro fitting threading semantics on to such an app is a complete nightmare though.
M _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal