Try Running this Script and see if you get a memory leak too.
Just Open up Taskmanager (windows) and you can see what is happening.
Not too good. I have narrowed it down to The [IShowActions…] Function.
At least where it is placed in the code seems to change the mem. Try in and out of the loop. If you let the script run through the whole cycle it will give a readout of memUsage. Top Notebar is cycle.
I am interested if different platforms have the same problems:
PentiumIV 3Ghz
WinXP SP1
Motherboard Shuttle
2Gb RAM
NVIDIA Quadro Fx 980
My MemLeak Range is .3Mb to 1.2Mb per run. Starts Low and Raises each time. Let me know what you guys get.
[VarDef,Looper,1]// Define A Counter
[VarDef, Mem, 0]// initial mem
[VarDef, Tmp, "OK"]//final mem output
[VarDef, Diff,0]//difference in mem usage
[VarDef, LastRun, 0]
//ZBrush\Scripts\MemoryLeak_Test_01.TXT
=========== Test To See Why Memory Leaking ===========
Cant Find Why/Where The Leak Is Occuring (Try For Yourself)
Seems like the IShowActions Func has something to do with it
With IShowActions about 60K per TaskUpdate, if in loop 120K (approx)
Open Task Manager And Watch The Memory Raise As Looping Occurs ????
PRESS ESCAPE To Stop
[IButton,"Test Memory Leak", "Open Task Manager And Watch The Memory Raise As Looping",
[VarSet, Mem, [ZBrushInfo, 3]]// get initial memory
[VarSet, Looper, 1]
[IShowActions,0]// This seems to add more memUsage.//place it in loop and it doubles
[Loop,10000,
[VarSet,Looper,[Var,Looper] + 1]//Increment Looper Variable
[NoteBar, Looper, [Var,Looper]/9999 ]// visual for testing
[ISet,Draw:Draw Size,SIN(Looper)*256]//Just so something is happening
[if,Looper > 9999,//999999
[VarSet, Looper, 1]
[LoopExit]
]
//[LoopExit]//Sometimes if I uncomment this and recomment, it never gets inserted back And
// then it will sometimes Crash after this
]// END LOOPING
[IShowActions,1]// reset Show Actions
//Output memory findings
[VarSet, Diff, [ZBrushInfo, 3]-Mem]
[VarSet, Tmp,
[StrMerge,
"Starting Memory: " ,Mem,
" Mb
Ending Memory: ",[ZBrushInfo, 3],
" Mb
Gained: ",Diff," Mb
",
"Last Run Gain: ", LastRun
]
]
[VarSet, LastRun, Diff]
//Ouput findings
[Note, Tmp]
]
=======END====== Test Leaking Memory =======END=======