Ciprian - 2018-06-26

Hi,

I have a problem with the heap memory increasing with each cycle.
A small description of the program:
I am trying to create objects dynamically in the runtime and for this I'm using FB_Factory library. I have two factory classes one for Object and one for SubObject. Internally, the Objects are saved in a LinkedList that is defined in ObjectFactory class. The SubObjectFactory class is declared inside the Object class and is used to create new SubObjects using Object.AddNewSubObject(). Internally this SubObjects are saved in an array.
My problem is when I delete an Object, in the next PLC cycle, the heap memory is increasing. Is it normal?
Furthermore, shouldn't Object.Dispose() return True if object is disposed?
I have attached the project.

Thank you!

TestList.project [143.47 KiB]