Game Development Community

Compile.cc bug ?

by Claude-Alain Fournier · in Torque Game Engine · 08/17/2004 (1:15 pm) · 1 replies

My game work fine, the problem I have is when closing the game, from time to time I get an exception, here is where it give trouble :

(in engine/console/compile.cc)

CodeBlock::~CodeBlock()
{
   if(name)
      removeFromCodeList();
   delete[] const_cast<char*>(globalStrings);
   delete[] const_cast<char*>(functionStrings);
   delete[] globalFloats;
   delete[] functionFloats;
>> delete[] code;
   delete[] breakList;
}


The CodeBlock object is for a script that is about 1000 lines long so I was wondering if I reached some internal limits there ? But as I said it does not happen all the time and does not depend on the fact that I started mission or not.

Anything that could point me to a direction would be greatly appreciated.

CAF

#1
08/18/2004 (6:52 pm)
This is probably due to some memory error elsewhere in your program - everything works until something is deleted, then it clobbers here.