Hi, all, I have a question about VLD's initialization. The VLD instance is a C++ global variable. How does it ensure that its constructor is called first, before any other global/static variables?
This article http://www.codeproject.com/Articles/9815/Visual-Leak-Detector-Enhanced-Memory-Leak-Detectio explained that it was done by setting the directive "#pragma init_seg (compiler)". But I found that directive doesn't exist in the new releases any more. So how it is done now?
Thanks for reply in advance!
This article http://www.codeproject.com/Articles/9815/Visual-Leak-Detector-Enhanced-Memory-Leak-Detectio explained that it was done by setting the directive "#pragma init_seg (compiler)". But I found that directive doesn't exist in the new releases any more. So how it is done now?
Thanks for reply in advance!