We have most of our memory issues fixed now. Thanks, this post helped! Also, related to this; it would be nice if messages like these:
[WRN] [16:51:14] (0, 0) : INFO : The builtin type in previous message is named 'array'
Could show up with their type instead, for example:
[WRN] [16:51:14] (0, 0) : INFO : The builtin type in previous message is named 'array'
I've modified as_module.cpp to achieve this myself for testing purposes:
asCString templateInstanceName = ot->GetName();
asUINT numSubTypes = ot->templateSubTypes.GetLength();
if (numSubTypes > 0)
{
templateInstanceName += "<";
for (asUINT i = 0; i < numSubTypes; i++)
{
asCDataType &dt = ot->templateSubTypes[i];
templateInstanceName += dt.GetTypeInfo()->GetName();
if (i < numSubTypes - 1)
templateInstanceName += ", ";
}
templateInstanceName += ">";
}
msg.Format(TXT_PREV_TYPE_IS_NAMED_s, templateInstanceName.AddressOf());
engine->WriteMessage("", 0, 0, asMSGTYPE_INFORMATION, msg.AddressOf());