Quote:Original post by Leadorn
Ive retested it with a totaly new empty console project and it calls the constructor on the static Test test object.
Yeah, with an empty project it works properly as I said earlier, but not with his example -- where the object is in a static link library.
Quote:Original post by Namethatnobodyelsetook
If I recall, making it static makes it initialize on first use. Why not just make it global and non-static?
Not true, see previous replies.