|
-
Jan 7th, 2005, 03:17 PM
#1
Thread Starter
Frenzied Member
Apllication Memory Usage
Someone just asked me how much memory my application uses. It's written in .NET Compact Framework running on Pocket PC 2003. Never even looked at memory usage.
It's what I'd consider a fairly simple app. One form, a few controls - text boxes, labels, a tab control, menu. Uses sockets as well.
Just starting up, without even connecting the socket, it uses almost 3 MB of memory. I haven't started to attempt to make it more effecient yet. Just wondering what people think - is that a lot of memory to use? Seems to me it is.
Any thoughts are appreciated.
Mike
Last edited by Mike Hildner; Jan 7th, 2005 at 03:29 PM.
-
Jan 7th, 2005, 10:02 PM
#2
Thread Starter
Frenzied Member
Re: Apllication Memory Usage
So I looked at some apps like File Explorer, and they were using about .2 MB. A default C# Smart Device Application uses about 1.5 MB. My app uses 2.2 on start up. I guess that's not too bad.
-
Jan 8th, 2005, 01:48 PM
#3
Re: Apllication Memory Usage
How much of that is the framework itself?
My usual boring signature: Nothing
 
-
Jan 8th, 2005, 06:39 PM
#4
Thread Starter
Frenzied Member
Re: Apllication Memory Usage
That's a good question, I'm not sure how to tell. Not sure if it even makes a difference for my needs. We're trying to squeeze a bunch of apps (mine, encryption, et. al.) on a PDA, and need to come up with memory requirements.
Hope I don't have to re-write in eC++.
After googling a bit, still haven't found a way to tell, but this article is pretty interesting.
-
Jan 10th, 2005, 11:50 AM
#5
Re: Apllication Memory Usage
I remember reading something about how the size of the .NET framework was reduced in size for the CF. I think it was in a Microsoft book, but it might have been on the MS web site somewhere. In any event, I remember the size of the CF was over 1 MB, and might have been over 2 MB. Therefore, if the total memory footprint of your program is not much above 2 MB, it might be mostly the CF.
I would expect that the CF would only load once, though. Therefore, it seems like you could write some trivial little program, and install it along with the one you want to test. Running the first one would load the CF, while running the second one would not re-load the CF. Whether or not you could determine the size of your non-CF program by subtracting memory usage between the two, I'm not sure.
My usual boring signature: Nothing
 
-
Jan 10th, 2005, 11:54 AM
#6
Thread Starter
Frenzied Member
Re: Apllication Memory Usage
I think you're right about that. If you read that article I posted the link to above, it goes through what happens with the first application and subsequent applications.
Was just a little embarassing when we're trying to squeeze a bunch of apps on one PDA, and my app is by far the largest. Oh well. I'm using the CF and that's the way it is.
-
Jan 10th, 2005, 02:02 PM
#7
Re: Apllication Memory Usage
I'm looking at deploying to SD cards. Memory should be cheap these days.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|