This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Memory Usage?


Memory Usage?

Postby mlepage » Feb 25, 2004 @ 5:56pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Presto » Feb 25, 2004 @ 7:21pm

Do you have it working on the desktop as well?

If you do you can get a rough estimate by opening the task manager in Win2K or WinXP and see how much memory its process is using. It'll vary on the PPC I'm sure, but probably not by too much.

-John
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby angedelamort » Feb 25, 2004 @ 7:33pm

there is fast way to do this on the device, but it's only an approximation:
overload the operator new, new[], delete and delete[]. And in those functions, add a memory counter that add/sub nb of bytes. If all the memory is allocated at the start of the program, it will be almost accurate, but if there is a lot of dynamic allocation, because of the fragmentation, it won't be really precise. But at least, you will have a better idea.

Having a memory manager is interesting for this matter :P but it's a lot of works.

Another way, is the brute force :P Full the memory of the ppc until your app don't works.
User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby mlepage » Feb 25, 2004 @ 8:09pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby angedelamort » Feb 25, 2004 @ 8:14pm

User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby Pam » Feb 25, 2004 @ 9:18pm

Check out this thread:

Pam
All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby fzammetti » Feb 25, 2004 @ 9:39pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby drgoldie » Feb 25, 2004 @ 9:58pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby Pam » Feb 25, 2004 @ 10:11pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby mlepage » Feb 25, 2004 @ 10:48pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby egarayblas » Feb 26, 2004 @ 12:28am

-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum