Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to avoid Out of Memory exception in WPF application?

$
0
0

Hi,

We have very complex WPF application. Where user can open 20 tabs at a time with thousand of rows. Each tab contains three grid and all can be contains thousands of rows. We have observed that if user open 8-10 tabs containing huge data Application trows out of memory exception. (I am using Windows 7 32 bits with 4 GB RAM). This happens when memory goes beyond 1.2 GB.

I want to provide notification to the user if application reach 1 GB of threshold value. So that user can save important data and close some tabs to release the memory.

I wanted to know possible way to implement this case. I am thinking to use "memoryfailpoint", but not able to figure out when i can place this. 

Let me know your view on the same.

Thanks,

Ajit


Viewing all articles
Browse latest Browse all 18858

Trending Articles