LangTable Bug (Solved)
by Yasin · in Torque Game Engine · 05/05/2007 (1:21 am) · 5 replies
I am not sure where shall I post bug reports. I wanted to share the bug with you. I have solved issue
this class is under i18n folder inside the file lang.cc
LangFile::~LangFile()
{
// [tom, 3/1/2005] Note: If this is freed in FreeTable() then when the file
// is loaded, the language name will be blitzed.
// Programming after 36 hours without sleep != good.
SAFE_DELETE(mLangName);
SAFE_DELETE(mLangFile);
freeTable();
}
lines should be
LangFile::~LangFile()
{
// [tom, 3/1/2005] Note: If this is freed in FreeTable() then when the file
// is loaded, the language name will be blitzed.
// Programming after 36 hours without sleep != good.
SAFE_DELETE_ARRAY(mLangName);
SAFE_DELETE_ARRAY(mLangFile);
freeTable();
}
this class is under i18n folder inside the file lang.cc
LangFile::~LangFile()
{
// [tom, 3/1/2005] Note: If this is freed in FreeTable() then when the file
// is loaded, the language name will be blitzed.
// Programming after 36 hours without sleep != good.
SAFE_DELETE(mLangName);
SAFE_DELETE(mLangFile);
freeTable();
}
lines should be
LangFile::~LangFile()
{
// [tom, 3/1/2005] Note: If this is freed in FreeTable() then when the file
// is loaded, the language name will be blitzed.
// Programming after 36 hours without sleep != good.
SAFE_DELETE_ARRAY(mLangName);
SAFE_DELETE_ARRAY(mLangFile);
freeTable();
}
About the author
#2
05/05/2007 (7:06 am)
Yeah, Tom sent me the localization code and fixes pretty much exactly one year ago, I've merged it into the then current HEAD and we sent it to GG, together with an example mod demonstrating all the localization features... guess it just got ignored then :P
#3
05/06/2007 (1:32 am)
I bought torque recently one week ago. If it is fixed why it is not added to latest release? It has taken my time to point and fix it. Engine is very powerful but from then I will suspect that every line of it my contain a bug.
#4
05/09/2007 (4:39 pm)
Stefan - can you send me the patch (or let me know who received the file). We were just looking for this code today and someone pointed me at this link...
#5
05/10/2007 (1:02 am)
Hi Clark, sent to your bravetree email address!
Torque 3D Owner Tom Bampton
The real question is ... what happened to it? There was a lot more to it then just that fix, and without it I suspect the localization code is incomplete/won't work.
T.