You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my program, after set Text attribute of a AvalonTextEditor with a string that has 1,000,000 lines, set Text to EMPTY again, I found a Memory problem. It seems too many objects are not GC.Collect.
Even set TextEditor variable to null is no help. The huge memory must be freeed after the process exits.
It seems we cannot clear Document.Lines, which is a list of DocumentLine type.
So, the problem is how to free memory after a big document closed?
The text was updated successfully, but these errors were encountered:
UPDATE: Objects mentioned in the first post could be collected by GC, and its count is correct on my another computer.
The computer which has memory problem was send to maintaince.
After some tests, I found the TASKMGR lists the app with a big memory value. the objects with most memeoy used value is TlsOverPerCoreLockedStacksArrayPool. Maybe process take some memory for pool to improve performance, so this is not a problem.
In my program, after set Text attribute of a AvalonTextEditor with a string that has 1,000,000 lines, set Text to EMPTY again, I found a Memory problem. It seems too many objects are not GC.Collect.
Even set TextEditor variable to null is no help. The huge memory must be freeed after the process exits.
It seems we cannot clear Document.Lines, which is a list of DocumentLine type.
So, the problem is how to free memory after a big document closed?
The text was updated successfully, but these errors were encountered: