FlowDocument Memory Issue in C#

前端 未结 8 1575
孤街浪徒
孤街浪徒 2021-01-02 15:34

I am currently attempting to deal with an issue with releasing a FlowDocument resources. I am loading an rtf file and putting it into a FlowDocument with TextRange.Load. I n

8条回答
  •  孤街浪徒
    2021-01-02 16:12

    Consider releasing that file handle. Also consider using the "using" statement instead of calling IDisposable.Dispose (no pun intended).

提交回复
热议问题