Perhaps I don’t understand how to use SharedPtr and MakeObject, but the Visual Studio resource monitor shows this code using up lots of memory as it runs:
#include <Aspose.Words.Cpp/Model/Document/Document.h>
using nam…...Release Memory used by Document Instance when Scope Ends to Prevent...<Aspose.Words.Cpp/Model/Document/Document.h> using namespace Aspose::Words;...