>Does it still leak if we only create a window (without the button)?

YES!

For me, I get no leak when just the window. I also played with a few other controls, and they leak too (a listview seemed to leak more than a button). Adding a child window to the parent window almost doesn't leak - a 4k leak every 30 seconds or so.

>Can someone run this with a fixed number of iterations, and tell me how
>much memory is leaked per iteration?

56 - 60 K each iteration

Hummm - I seem to leak about 108 bytes per itteration.

Start code and figures vary but average 40% CPU to Perl.exe and 30% CPU to
Explorer.exe, the figures change between these two executables by as much as
10%, however the total between the two stays at 70% total CPU.

When terminating with Ctrl-C, note that perl.exe died straight away however
Explorer.exe took a few moments more to die and return the memory.

Yeah, I see the same thing.

Cheers,

jez.



Reply via email to