This project has moved and is read-only. For the latest updates, please go here.

How does VLD ensure that it is initialized first?

Oct 9, 2013 at 8:36 AM
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 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!