我有一个class,要求有人用的时候就initialize and work,但不知道什么时候没人用了,所以我就作为一个global variable放在DLL里,等destructor时我再cleanup。但我发现在某种场合destructor再cleanup时已经太晚了,那时候DLL都unload了。有没有什么好办法让它自动提前cleanup,又做到it is the last one.
请DX们指教,谢谢各位。
City of Ottawa Launches Light Rail Expansion Web Site
Thursday, 23 February 2006
The City of Ottawa today unveiled a new section on its Web site dedicated to Light Rail Transit (LRT). The site is the place to go for anyone looking for information on Ottawa's future public transportation...