Am 10.06.2012 00:01, schrieb ArtemGr: > Tommi Mäkitalo<tommi@...> writes: >> One problem is, that there is no application startup hook (actually you may >> trick with the factory ctor but I don't recomended it). You may create a >> singleton class, which starts the thread when the first request arrives. >> Notification about stopping tntnet may be received in a dtor of a class in >> application scope. > Tommi, > > I'm trying to do just that > and I'm not seeing the<%application>-scope destructor being called. > The<%thread>-scope destructors are called, but not the<%application>'s. > Should it work? > Hi,
yes you are right. The application scopes were not destructed. And using valgrind I found some other memory leaks in cxxtools and tntnet. If fixed it now. The leaks affected static structures so they did not leak continuously. Tommi ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
