Is singletone really a singletone across projects?
Hi There are three projects of Visual studio as below: 1. P1: This project is MFC exe and this exe has one function as F1. This F1 function calls a function F2 from another project P2 2. P2: This is DLL project which has function F2 which eventually gets called from P1 project 3. P3: This is a DLL and it has just an implementation of a singletone class. Now, I am including singletone class of P3 project into P1 and P2. In other words, I am creating class object in function F1 of P1 project and function F2 of P2 project. F1 function calls F2 and hence both objects (singleton class object) are not created at a specific same point of time. Query is that does F2 function execution ensures that I will get same Singleton object created in F1 or it will create new object ? Many thanks in advance... feel free to ask in case of any queries.