Posted 8 September 2017, 3:16 pm ESTHi all,
we are using "Spread for Windows Forms" version 6.0.3503.2008. And we use this with several custom celltypes mostly based on standard celltypes. Some of these custom celltypes internally load user controls and subscribes events.
As our spread is created, resetted and re-created often during application runtime using many of our custom celltype we found out that the User Objects of our application process (checked with Windows Task Manager) increases very fast.
However, we reset our spread during application runtime by using ActiveSheet.Rows.Clear() and then re-add new row.
But the reset does not dispose the used custom celltypes instances so that the User Objects are not destroyed during the reset process. So we run in a very short time into a situation that the maximum number of User Objects is allocated and our system hangs.
My question now is:
What do we have to do/implement to make the spread dispose our custom cell types when we clear the rows (or just remove some rows and want the used custom cell types to be destroyed too).