This lens snippet (assembled using other snippets from the forum and from the help file)  makes memory usage grow linearly, and never released till closed. could someone tell me what should I change to make it do a regular use of memory? thanks This listing is debugged (Thanks to Danyfirex) #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <ScreenCapture.au3> Global Const $iWidth = 400, $iHeight = 200 ; lens dimensions Global $Magn