The following range of versions of aspose.words have memory leaks in the following function:
MakeObject(u"example.docx");
Aspose.Words.Cpp.23.9.0 → Aspose.Words.Cpp.24.3.0 (now)
The memory leak exists probably even longer.
Can be reproduced as follows:
Snippet
// use a word-file with 1 mb of size to detect the leak quicker.
// Taskmanager shows now a rapid growth in memory
const String systemFilename{ u"example.docx" };
for (int i{}; i < 3700; ++i)
{
System::SmartPtr<Aspose::Words::Document> document = System::MakeObject<Aspose::Words::Document>(systemFilename);
}
Can be reproduced with every docx-file. The bigger the size of the file the bigger the memory leak.
Regarding to VisualStudio Debbuger the SharedPointer Count in Document is not 0 after it goes out of scope.
Similar bug to the previously fixed: Release Memory used by Document Instance when Scope Ends to Prevent Memory Leak in Aspose.Words for C++ - Free Support Forum - aspose.com