
Hi all,
My problem is when I using list/set in a class, it consume lots of memory, say 20 GB just like memory leak but I cannot find the reason.
My code is like the following,
List ItemSetList= new List(Types::Class);
Set ResultSet = new Set(Types::Record);
ListEnumerator ItemEnumerator ;
Result _result;
;
[some process to query list]
ItemEnumerator=ItemSetList.getEnumerator();
while (ItemEnumerator.moveNext())
{
_result=ItemEnumerator.current();
if(...)
{
ResultSet.add(_result);
}
}
During the execution, I found the RAM consume dynamically. When the resultSet has only 3000 record, the RAM consumption can reach 20 GB. I am quite confused about where have the momory gone. Any suggestion is appreciated. Thank you~!
*This post is locked for comments
I have the same question (0)If you can reliable reproduce the problem, it will be great if you report it to Microsoft, so they can fix it.