void JMMErrorPrinter::HandleMultipleAllocation ( const JMMRecord& thisRecord, const JMMRecord& firstRecord ) { if (itsPrintErrorsFlag) { cout << "*** memory error: item allocated as " << thisRecord.DeleteTypeName() << " at\n " << thisRecord.GetNewFile() << ":" << thisRecord.GetNewLine() << "\n was first allocated as " << firstRecord.DeleteTypeName() << " at\n " << firstRecord.GetNewFile() << ":" << firstRecord.GetNewLine() << endl; } }
void JMMErrorPrinter::HandleMultipleDeletion ( const JMMRecord& originalRecord, const JCharacter* file, const JUInt32 line, const JBoolean isArray ) { if (itsPrintErrorsFlag) { cout << "*** memory error: Block deleted as " << JMMRecord::TypeName(isArray) << " at\n " << file << ":" << line << "\n was already deleted, most recently as " << originalRecord.DeleteTypeName() << " at\n " << originalRecord.GetDeleteFile() << ":" << originalRecord.GetDeleteLine() << endl; } }