T
Tsviatko Yovtchev
I've been putting my application(C#, .NET CF) through some stress
testing when I encountered this pretty nasty problem.
Basically, when the application runs out of memory I get the "Program
Memory Low - Select a task to close or increase program memory" dialog
window with a list of running tasks that I can close to choose from. My
app, however is NOT listed there. So, if I close everything else and my
app still needs more memory I keep getting instances of this dialog
window with nothing to choose from until eventually the whole system
crashes at which point I need to do a restart.
So, it looks like I'll have to handle this problem inside my
application. The problem is I could not find a way to programatically
determine the amount of free memory at a given point of time. I also
could not find any event that occurs when there is no more free memory
which I could handle inside my app.
Does anybody have any idea how I can handle this problem?
testing when I encountered this pretty nasty problem.
Basically, when the application runs out of memory I get the "Program
Memory Low - Select a task to close or increase program memory" dialog
window with a list of running tasks that I can close to choose from. My
app, however is NOT listed there. So, if I close everything else and my
app still needs more memory I keep getting instances of this dialog
window with nothing to choose from until eventually the whole system
crashes at which point I need to do a restart.
So, it looks like I'll have to handle this problem inside my
application. The problem is I could not find a way to programatically
determine the amount of free memory at a given point of time. I also
could not find any event that occurs when there is no more free memory
which I could handle inside my app.
Does anybody have any idea how I can handle this problem?