20 Feb
2007
20 Feb
'07
5:52 p.m.
Hello Robert, the problem is related to use of singleton, which have many problems as described in Alexandrescu. We have singletons a la: class Singleton { public: static Singleton* Instance() { if (ms_pInstance == NULL) { ms_pInstance = new Singleton } return ms_pInstance; } private: Singleton() { atexit(&Destroy); } static void Destroy() { delete ms_pInstance; } static Singleton* ms_pInstance; }; I was hoping for some sort of work around in which the serialization library could be fooled to initialise itself with some simple function calls, but indeed tackling the singleton problem would be more fundamental. wkr, me