OutOfMemoryException

  • Thread starter Thread starter Peter Morris [Droopy eyes software]
  • Start date Start date
Hi Daniel

It's the low-memory dialog I am actually interested in. I would like to
tell my user to restart their app if they have been using it for a few days
in a row and are running low on memory.

In the long term I will fix my problem (I know what it is) but in the short
term I'd just like to know how much memory I have left so that I can prevent
the user from proceeding if I should decide it is necessary.

Is that possible?


Thanks
 
Without commenting on your approach... If you go back to the blog entry I
pointed you to then you'll see how to get the free memory remaining.

Cheers
Daniel
 
Hi Daniel

Do you mean the part on SetOomEvent? I can't see anywhere that explains how
to check how much memory is left! Sorry if I am being thick here, but I
even searched the text on the page.

Cheers

Pete
 
See Sergey's reply or go back to my blog entry and look at point 4... I am
not sure I can get more specific than that...

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

Sergey Bogdanov said:
Daniel's post pointed to FAQ where explained how it can be done. See the
answer to a question "How do I determine how much memory a device has
available?" here:
http://msdn.microsoft.com/netframework/programming/netcf/cffaq/cf10.aspx


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi Daniel

Do you mean the part on SetOomEvent? I can't see anywhere that explains
how to check how much memory is left! Sorry if I am being thick here,
but I even searched the text on the page.

Cheers

Pete
 
Back
Top