memory once used not regained for application developed using dot net

A

arunmib

Hi,
I am working on dot net compact framework recently and did find
something strange (probably for me alone) with the application i am
developing. I loaded my application and in a O2 smartphone and ran it
once it was fine. I jotted down the available physical memory by
connecting to the device using the 'Remote System Information' option
provided with EVc++.
It was '5880'KB and after first run the available physical memory
was '5240'KB and for each
consecutive run the available physical memory started dropping
around '500' KB for each run. The application finally crashed after
running 15 times. I thought this was because of some dll and other
image loading issues.

To test what is wrong i developed a small test application in which
there are only two menus one to exit the application (using
application.exit()), and the other just creates a file and writes
'hi' in it and closes the file and then prompts a message box. No dll
imports and no images and no fancy or core stuff. It's just two
buttons and a message box. But even while running this application i
found that the memory consumption was phenomenal, that is for each run
the application takes around '700'KB. After exiting the application not
all this memory is recovered and around '20'KB is lost.

I have no clue whats happening and why is it happening. I tried it
with different devices too.I tried this with a VOQ, an O2, and also
with MDA T-Mobile and likes, but results are still the same.

Can anyone help me know whats going on or am I missing something so
basic that is causing this trouble.

Well forgot to mention I am using, Dot net 2003 to develop my
application.

Some help :( :( :(

Regards,

Arun.
 
A

arunmib

Hey I got the bug. Problem with my coding. A function I am using in
the dll was not freeing memory and I haven't disposed the forms.

Regards,

Arun.
 

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