Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

New Post: How does VLD ensure that it is initialized first?

$
0
0
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!

Viewing all articles
Browse latest Browse all 704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>