Hi,
When loading a large file into SyntaxEditor, the memory consumption of my application goes from ~80 mb to ~700 mb, despite the fact that the loaded file is only on 12 mb. I understand just fine that SyntaxEditor is not geared towards editing very large files, and this is not likely to be a problem for most of my customers. However, one thing does worry me: Once I close the document, the memory is not free'd. I tried to add a Dispose() call on the Document object, but that didn't seem to make a difference. I then tried to do a GC.Collect(); afterwards, and that worked. But is that the best way to do it?
When loading a large file into SyntaxEditor, the memory consumption of my application goes from ~80 mb to ~700 mb, despite the fact that the loaded file is only on 12 mb. I understand just fine that SyntaxEditor is not geared towards editing very large files, and this is not likely to be a problem for most of my customers. However, one thing does worry me: Once I close the document, the memory is not free'd. I tried to add a Dispose() call on the Document object, but that didn't seem to make a difference. I then tried to do a GC.Collect(); afterwards, and that worked. But is that the best way to do it?