unloading of application

Hi,

I'm writing an application for compact framework Pocket PC. My application unloads frequently when it finds low memory. i want to run my application always in the memory.

How do i make ay application always running in the memory.

Please give me good solution.

Thanks a lot in advance.

Srinivas

[335 byte] By [Srinivasaguru] at [2007-12-27]
# 1
Which version of Windows Mobile is this?
Aarthi_MSFT at 2007-9-4 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2

Hi,

Sorry for the late reply.

iam using windows mobile 5.0

Srinivasaguru at 2007-9-4 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 3

I'm not sure I understand the question. What do you mean by "application unloads when it finds low memory"? Does you application run out of memory and throws OutOfMemoryException?

Thanks,

Roman

RomanBatoukov-MSFT at 2007-9-4 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 4

No it is not throwing any Error or Exception. My application runs perfectly with five or six apllications running in the Memory when it exceeds more than seven or eight application in the memory my application unloads without giving any warning or error message to the user.

Sometimes when the user using the IE and Query Analyzer the application unloads(my application is not showing up in the memory->RunningPrograms) this is not happen at all time.

My application is about to track the Phone calls and emails from the device.

Thanks,

Srinivas

Srinivasaguru at 2007-9-4 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 5
I think this thread may be touching upon your issue and partial solution. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=273896&SiteID=1

As the fellow mentions cancelling the WM_CLOSE message frequently works but isn't guaranteed.

Noah Falk
.Net Compact Framework

NoahFalk-MSFT at 2007-9-4 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...