quit unexpectedly vs hard out of memory

K

KNC

hi all,

I have raised this problem long ago but I am back for your help.

I heard about Pocket PC memory limitation within 32 MBs virtual
address space after reading some articles:
Mike Zintel:
http://blogs.msdn.com/mikezintel/archive/2004/12/08/278153.aspx
Douglas Boling : Windows CE .NET Advanced Memory Management

Then I have recorded the virtual address space consumed by my .NET
pocket pc App via function GlobalMemoryStatus() every 5s for catching
memory status in case of unexpedtedly quitting, and it report :
Total virtual = 32
Available virtual = 15 ~ 20 MBs

So it seems there is much free memory for my app !!!
Could someone point out why my app often exit suddenly without any
warning !!! Is there other reason that I don't know?
Very appreciated,
Khanh
 
G

Guest

hi,

I have also faced the same problem earlier. whenever the user tried to run
3-4 applications other than my running application, the OS forcefully closed
my application. there were unexpected errors also, when certain active forms
were closed.

so i used a warning message, a check(e.cancel = True/False), in the close
event of the main form.

Then i installed .NET Compact Framework 1.0 Service Pack 3, which solved
most of the problems. After installing Service pack 3, the frequency of my
application get closed reduced drastically (almost nill) and if the os tried
to close it, only the warning message will appear(rarely appeared). After
this, there was not even a single instance in which my application get
closed. The wonderful result was the applications in the system itself(word,
excel, media player etc) are getting closed, instead of my application.

So please install the service pack 3 and try again.

Regards,
Hari
 
K

KNC

hi Hari,

Many thanks for your reply. My only concern is whether there is any
side effect after installing SP 3 for a stable running app under SP 2?
IIRC, there is a couple of event changes from SP 1 to SP 2. Do we need
to test all forms again ?

Thanks,
Khanh
 
G

Guest

hi Khanh,

In my application, there is no side effects till now, by installing SP 3.
Anyway, it is recommended to test your application once again in the new
environment.

regards,
Hari
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top