What is the best way of initializing and terminating an application?
- The library needs to be initialized/terminated only once and can be used by any number of dlls.
- Is there any standard design to accomplish this?
- This initialization has to be the very first step.
Is singleton is what I need here. Any number of dlls which are loaded will use the same instance or a separate one?
I am using a log4cxx logger implementation. I want this log4cxx should be initialized only once. Can anybody point to a pseudocode