🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Untitled

posted in DruinkJournal
Published July 12, 2007
Advertisement
Yay, memory manager stuff sorted [smile]:
// Ensure the memory manager is constructed extremely early on#pragma warning(disable:4074) // warning C4074: initializers put in compiler reserved initialization area#pragma init_seg(compiler)struct MemoryInitialiser{    MemoryInitialiser() { PMemory::Create(); }    ~MemoryInitialiser() { PMemory::Destroy(); }} g_theMemoryInitialiser;

Hoorah for #pragma init_seg! Incidently, the STL global appears to be in the lib segment, because putting that struct into the lib segment still showed the memory "leaks".


In other news:
Previous Entry Untitled
Next Entry Untitled
0 likes 1 comments

Comments

jollyjeffers
6666 - impressive. I only score 3.1 on the posts-per-day scale, but I blame that on being 7 years old instead of 4 [smile].

Jack
July 12, 2007 09:15 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement