Moderators: Sascha Willems, walaber
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF|_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF));
GLUI_Master_Object::~GLUI_Master_Object()
{
}GLUI_Master_Object::~GLUI_Master_Object()
{
GLUI_Glut_Window* window;
window = (GLUI_Glut_Window*) glut_windows.first_child();
if (window) {
delete window;
}
}

Julio Jerez wrote:I had it with GLUI it is almost improsible to fix teh Bug,
I will be simples to just replace it, what do you guy use for light weight GUI with GLUT.
some one metion one before bu I forgot.
I am not spending one more minute in GLUI anymore. not only is GLUI bogus but it also malfution on the Mac and Linux
Stucuk wrote:It is funny how stuff done by even the "Professionals" have memory leaks. There are quite a few of Borlands own components which leak memory and they invented Delphi...
DAE* dae;
daeInt error;
daeURI* uriName;
daeDatabase* database;
daeDocument* document;
// create a new collada object
dae = CreateDAE ();
_ASSERTE (dae);
daeInt error;
daeDatabase* database;
daeDocument *document;
database = m_collada->getDatabase();
error = database->insertDocument ("mainDoc", &document);
delete dae;
DAE::cleanup();

static std::set<void*> memoryLeakTracker;
daeRawRef
daeMemorySystem::malloc(daeString pool, size_t n)
{
(void)pool;
// void *mem = ::malloc(n);
char* mem = new char [n];
memoryLeakTracker.insert(mem);
return (daeRawRef)mem;
}
void
daeMemorySystem::free(daeString pool, daeRawRef mem)
{
(void)pool;
// printf("free[%s] - 0x%x\n",pool,mem);
// ::free(mem);
char* memPtr = (char*) mem;
memoryLeakTracker.erase(memPtr);
delete[] memPtr;
}
void daeMemorySystem::cleanup()
{
while (memoryLeakTracker.size()) {
daeMemorySystem::free("any", *(memoryLeakTracker.begin()));
}
} 
Users browsing this forum: No registered users and 490 guests