Dear,
Hello.
I'm creating a macro using the "ZEN 2.6 system".
I'm making a TCP connection and running a macro from another PC.
When performing ZStack measurements, there is a memory leak problem.
(Change of objective lens, autofocus, ZStack measurement, output of CZI file and SUR file)
Executing "exp.Close ()". Is there any other processing that needs to free memory?
Thank you.
Memory leak
Hello.
My code is
-----------
Zen.Acquisition.Execute(experiment)
-----------
What should I do in this case?
Also, with another code
-----------
strImageName = Zen.Application.ActiveDocument.FileName
imgAct = Zen.Application.LoadImage(strImageName)
imgTop = Zen.Processing.Transformation.Topography.CreateTopography(imgAct,int(MaskMin),int(MaskMax))
Zen.Processing.Utilities.ExportTextureFromTopography(imgTop, IntFile)
Zen.Processing.Utilities.ExportHeightmapFromTopography(imgTop, TopFile)
Zen.Application.Save(imgAct, CziFile)
-----------
in this case, Is the following code OK?
imgAct.Close()
imgTop.Close()
My code is
-----------
Zen.Acquisition.Execute(experiment)
-----------
What should I do in this case?
Also, with another code
-----------
strImageName = Zen.Application.ActiveDocument.FileName
imgAct = Zen.Application.LoadImage(strImageName)
imgTop = Zen.Processing.Transformation.Topography.CreateTopography(imgAct,int(MaskMin),int(MaskMax))
Zen.Processing.Utilities.ExportTextureFromTopography(imgTop, IntFile)
Zen.Processing.Utilities.ExportHeightmapFromTopography(imgTop, TopFile)
Zen.Application.Save(imgAct, CziFile)
-----------
in this case, Is the following code OK?
imgAct.Close()
imgTop.Close()