﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1565	Arrays as object properties; memory leak	trancexx	Jon	"If arrays are used with objects as e.g. properties some sort of memory leak occurs. This seems to be specific only to Array type. 
Example (monitor memory usage during execution):
{{{
$a = StringSplit(""a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"", "","")

MsgBox(0, """", ""start"")
For $count = 0 To 10000
	$obj = ObjCreate(""Scripting.Dictionary"")
	$obj.add(""test"", $a)
	$obj = 0
Next
MsgBox(0, """", ""stop"")
}}}

For possible comparisons, VBS version would be:
{{{
a = Split(""a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"", "","")
 
MsgBox(""start"")
For count = 0 to 10000
    Set obj=CreateObject(""Scripting.Dictionary"")
    obj.add ""test"", a
    Set obj = Nothing
Next
MsgBox(""stop"")
}}}
No leak there (or with some other languages)."	Bug	closed	3.3.7.10	AutoIt	3.3.6.0	None	Fixed		
