<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR><BR>As for why memory
returned to memory manager, does not get back to the OS (apparently not even
when using cmem...) no idea. But memory is definitely returned to the mem
manager.<BR><BR>As for the issue Ludo reported with QT, and requiring even a
reset of his system. *IF* any handles or other resources of the widgetset (not
the lazarus part, but the actual QT or GTK lib or w32) are leaked, then it
needs to be traced. (btw there were people with issues on win98, so it could
be).<BR>But such leaks, would be necessarily be likely to be noticeable as
huge memory consumers.<BR><SPAN class=421431914-16082011><FONT face=Arial
color=#0000ff size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=421431914-16082011></SPAN> </DIV></BLOCKQUOTE>
<DIV><SPAN class=421431914-16082011><FONT face=Arial color=#0000ff size=2>Got
also further on Qt: Lazarus compiled with cmem running outside valgrind
</FONT><FONT face=Arial color=#0000ff size=2>doesn't grow the memory used doing
multiple load/unload of the 450 files. Memory doesn't drop at all when closing
files (same on gtk2 using cmem), but there is no increase. The memory
increase and the related pthread memory problem seems to be linked to running
inside valgrind massif with the --pages-as-heap=yes option. One of the
side-effects is that all the memory that top marks as VIRT is taken into
account, including shared with other processes. The hint came from a trace on
the GTK2 machine where a very big chunk of pthread memory was allocated by
arena.c which is a memory pool library. </FONT></SPAN></DIV>
<DIV><SPAN class=421431914-16082011><FONT face=Arial color=#0000ff size=2>The
problem with <FONT size=2>QFileSystemWatcher spawning threads is apparently a
known problem: </FONT><A
href="https://bugreports.qt.nokia.com//browse/QTBUG-20028">https://bugreports.qt.nokia.com//browse/QTBUG-20028</A></FONT></SPAN></DIV>
<DIV><SPAN class=421431914-16082011><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421431914-16082011><FONT face=Arial color=#0000ff
size=2>Ludo</FONT></SPAN></DIV></BODY></HTML>