Hi, there seems to be a memory leak in XEnumerationAccess::createEnumeration(). When I run the following BASIC code on a Writer document, I can watch the memory usage go up: Sub Main for i = 1 to 100000 text = ThisComponent.getText() paragraphs = text.createEnumeration() while (paragraphs.hasMoreElements()) paragraph = paragraphs.nextElement() parenum = paragraph.createEnumeration() wend next End Sub I discovered the problem first in a C++ Extension where it seems to be a lot worse (a few hundred iterations are enough). But it also seems to depend on how many paragraphs your document has. A large document will fill memory faster than a small document. Version: 6.3.3.2 Build-ID: 1:6.3.3-0ubuntu0.18.04.1~lo1 CPU-Threads: 4; BS: Linux 4.15; UI-Render: Standard; VCL: kde5; and also: Version: 6.3.2.2 (x64) Build-ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c CPU-Threads: 2; BS: Windows 6.3; UI-Render: Standard; VCL: win; Greetings, Jan _______________________________________________ LibreOffice mailing list LibreOffice@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/libreoffice