# Memory Usage and Resource Disposal

> Find undisposed ServerTextControl instances in WPF apps, watch USER and GDI handles, see why the WPF TextControl needs no Dispose, and handle OutOfMemory.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Performance > Memory Usage and Resource Disposal
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/llms-full.txt

---

## On This Page

- [What Each Part Keeps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/#what-each-part-keeps)
- [Dispose Every ServerTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/#dispose-every-servertextcontrol)
- [Watch Instances and Handles](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/#watch-instances-and-handles)
- [Keep the Undo Buffer Small](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/#keep-the-undo-buffer-small)
- [When Memory Runs Out](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/#when-memory-runs-out)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/#next-steps)

---

## Nearby

- **Previous:** [Large Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/large-documents/llms.txt)
- **Next:** [Document Loading and Conversion](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/loading-conversion/llms.txt)
