istr.get(ch);
}
section[i] = 0;
+
+ // gt - needed to trick the hash table "TexReferences" into deleting the key
+ // strings it creates in the Put() function, but not the item that is
+ // created here, as that is destroyed elsewhere. Without doing this, there
+ // were massive memory leaks
+ TexReferences.DeleteContents(TRUE);
TexReferences.Put(label, new TexRef(label, file, section, sectionName));
+ TexReferences.DeleteContents(FALSE);
}
}
}
while (!istr.eof() && !stopping)
{
// i ++;
- if (i >= 2000)
+ if (i >= 4000)
{
char buf[100];
- sprintf(buf, "Sorry, value > 2000 chars in bib file at line %ld, terminating.", BibLine);
+ sprintf(buf, "Sorry, value > 4000 chars in bib file at line %ld, terminating.", BibLine);
wxFatalError(buf, "Tex2RTF Fatal Error");
}
istr.get(ch);
OnInform("Reading .bib file...");
char ch;
- char fieldValue[2000];
+ char fieldValue[4000];
char recordType[100];
char recordKey[100];
char recordField[100];