Game Development Community

Mutex undelete and more resource unrelease

by King · in Torque Game Engine · 01/05/2006 (2:23 am) · 4 replies

Engine\platform\platformMemory.cc(843)

I can't debugbreak in " static void shutdown() ", it is not run.

so memory leak.

#1
01/08/2006 (2:12 am)
I don't follow... What's going on?
#2
01/09/2006 (3:33 pm)
Looks like static void Memory::shutdown() is never called.
I don't see a call in the main engine, or in any of the platform libs.
I could be wrong now... but it looks like the memory manager's mass-deallocation is never run.

This, of course, should not matter to any modern OS, which will deallocate the memory when the process exits anyway.

/Paul
#3
01/09/2006 (10:24 pm)
Oh, I'm understand.

thanks Paul.
#4
01/11/2006 (11:25 am)
We should not be relying on the OS to clean up our memory on exit though. If we aren't shutting down properly, this should be fixed.