
Hi,
We are using the Syntax Editor control to display entire data from a file of about 250MB by highlighting some of the data using Lexical Pattern.
While inserting the data as several chunks to the Syntax Editor tool, we are getting "Out of Memory" exception.
We are inserting the text in the following way:
syntaxEditor.Document.InsertText(DocumentModificationType.Typing, RawData.Document.Length, allDevices.ToString(), DocumentModificationOptions.None);
syntaxEditor.Document.UndoRedo.Clear();
After reading data from the file, the memory consumed was about 16MB. But once we started inserting data into the control, the memory usage was started raising dramatically and was consumed about 1,120,168K(as got from the Task Manager) and memory usage was above the 1024MB (as per memory profiler) mark at the time of the "Out of Memory" exception.
Please help us on how shall we overcome this problem.
We are using Syntax Editor-4.0.0262 in VS 2008
Thanks in advance.
Sakthi.
We are using the Syntax Editor control to display entire data from a file of about 250MB by highlighting some of the data using Lexical Pattern.
While inserting the data as several chunks to the Syntax Editor tool, we are getting "Out of Memory" exception.
We are inserting the text in the following way:
syntaxEditor.Document.InsertText(DocumentModificationType.Typing, RawData.Document.Length, allDevices.ToString(), DocumentModificationOptions.None);
syntaxEditor.Document.UndoRedo.Clear();
After reading data from the file, the memory consumed was about 16MB. But once we started inserting data into the control, the memory usage was started raising dramatically and was consumed about 1,120,168K(as got from the Task Manager) and memory usage was above the 1024MB (as per memory profiler) mark at the time of the "Out of Memory" exception.
Please help us on how shall we overcome this problem.
We are using Syntax Editor-4.0.0262 in VS 2008
Thanks in advance.
Sakthi.