CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sat Aug 17, 2019 4:21 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Heap memory issue
PostPosted: Tue Jun 26, 2018 9:26 am 

Joined: Tue Aug 25, 2015 12:52 pm
Posts: 20

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!

You do not have the required permissions to view the files attached to this post.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited