Standalone threads - test.d

Lightoze Lightoze_member at pathlink.com
Sun Feb 19 05:52:11 PST 2006


>What you're doing should be fine.  How are you detecting that a memory 
>leak is occurring?
>
>Sean

I use "top" command on my linux. For testing I execute sample code with delay in
loop. Resident size grows by 8kb per iteration, virtual size grows by 8mb+ per
iteration. I have virtual size over 300mb after several minutes.
I have attached test program I use - you can try it.


begin 0644 test.d
M<')I=F%T92!I;7!O<G0@<W1D+G1H<F5A9#L*<')I=F%T92!I;7!O<G0@<W1D
M+G-T9&EO.PIP<FEV871E(&EM<&]R="!S=&0N8V]N=CL*<')I=F%T92!I;7!O
M<G0@<W1D+F,N=&EM93L*"F-L87-S(%@@.B!4:')E860@>PH)<'5B;&EC('1H
M:7,H*2!["@D)<W5P97(H)BAT:&ES+F=O*2D["@E]"@D*"7!U8FQI8R!^=&AI
M<R at I('L*"0EP<FEN=&8H(E1H<F5A9"!D96QE=&5D7&XB*3L*"7T*"0H)<'5B
M;&EC(&EN="!G;R at I('L*"0EP<FEN=&8H(E1H<F5A9"!S=&%R=&5D7&XB*3L*
M"0ER971U<FX@,#L*"7T*?0H*:6YT(&UA:6XH8VAA<EM=6UT at 87)G<RD@>PH)
M=VAI;&4@*'1R=64I('L*"0EU:6YT(&,@/2`P.PH)"69O<F5A8V@@*%1H<F5A
M9"!T.R!4:')E860N9V5T06QL*"DI('L*"0D)<')I;G1F*")4:')E860@)6E<
M;B(L('0I.PH)"0EC*RL["@D)?0H)"7!R:6YT9B at B5&]T86P@=&AR96%D<SH@
M)6E<;B(L(&,I.PH)"5@@>"`](&YE=R!8.PH)"7 at N<W1A<G0H*3L*"0D*"0EP
M<FEN=&8H(E!)3D<Z("5I7&XB+"!T:6UE*&YU;&PI*3L*"0EF9FQU<V at H<W1D
D;W5T*3L*"0D*"0ES;&5E<"@U*3L*"7T*"7)E='5R;B`P.PI]
`
end



More information about the Digitalmars-d mailing list