I am using Syntax Editor to display rolling data. This means that I append data at the bottom and remove data at the top. Data scrolls dynamically for a period of hours.
When I profile memory with Ants, I notice that I am accumulating Token objects, more than 100,000. It appears that Token objects get created but not garbage collected.
I am not replacing or giving the control any Token objects of my own. It uses whatever it uses by default. We are using this like a simple text control without any parsing.
Is there some call I need to make to free up the Token objects or is this related to the way I append data and delete data?
I do my deletes like this:
RawData.Document.UndoableDelete(DocumentModificationType.Delete, 0, textToCrop);
And my appends like this:
RawData.Document.UndoableInsert(DocumentModificationType.Typing, RawData.Document.Length, 0, allDevices.ToString());
Mike.Jones@woofumdust.com
[Modified at 01/11/2008 05:38 PM]
When I profile memory with Ants, I notice that I am accumulating Token objects, more than 100,000. It appears that Token objects get created but not garbage collected.
I am not replacing or giving the control any Token objects of my own. It uses whatever it uses by default. We are using this like a simple text control without any parsing.
Is there some call I need to make to free up the Token objects or is this related to the way I append data and delete data?
I do my deletes like this:
RawData.Document.UndoableDelete(DocumentModificationType.Delete, 0, textToCrop);
And my appends like this:
RawData.Document.UndoableInsert(DocumentModificationType.Typing, RawData.Document.Length, 0, allDevices.ToString());
Mike.Jones@woofumdust.com
[Modified at 01/11/2008 05:38 PM]