Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Way to decrease memory usage


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2008, 11:00 AM
Newbie
 
Join Date: Dec 2007
Posts: 2
Default Way to decrease memory usage

In most questions I am happy with this software, it's easy in use, have good documentation. But I have now one problem, which doing B4P unusable for me. Compiled device.exe-s, when it loaded into PC, allocate giant amounts of memory.
For example, I have compiled and loaded on FS loox N560 Sover program from Samples. I have selected this sample, because it size close to size of my program. And, when i am loading SKTools, and checking Processes, I see Size 1052672 bytes and heap size 1830800 bytes. It is close to allocations for my program. I think, it is too much for such program, 3Mb - it's normal size for middle-size navigation system, or for good media player.
Now I have my program wrote in Mort Scritp, and when I am loading it I have with MortScript.exe summary less then 1000K. I am trying to write it on the B4P, because teoretically, in compiled form, it must be less.
Possible, peoples know some way to decrease memory usage? I will glad to know how to do it.
Reply With Quote
  #2 (permalink)  
Old 01-03-2008, 12:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

Did you use the optimized compilation option?
Basic4ppc compiled applications are .Net applications.
Some memory is required for the .Net framework.

Did you run to any memory issues?
The .Net Garbage Collector handles the memory in such a way that if memory is not available it will take less memory.
Reply With Quote
  #3 (permalink)  
Old 01-03-2008, 01:39 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,900
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Unless you have actually experienced an out of memory error I think that you are imagining a problem that doesn't exist. I think you meant the Solver example. This program should take up very little memory when run The .NET framework may well have reserved a lot of memory but it doesn't mean that it cannot be released if another process requires it.
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 10:44 AM
Newbie
 
Join Date: Dec 2007
Posts: 2
Default

I am not so familiar with .NET, and I hope you are right, will check it when my program will ready.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dim memory usage JamesC Questions & Help Needed 2 07-21-2008 09:09 AM
Images and memory wolfgang Questions & Help Needed 5 02-23-2008 06:08 PM
How much memory remains? willisgt Questions & Help Needed 1 12-05-2007 08:55 AM
FormLib: download? Usage? laiyilam Questions & Help Needed 2 09-10-2007 02:53 PM
Memory Usage Scubaticus Questions & Help Needed 6 07-03-2007 06:37 PM


All times are GMT. The time now is 07:02 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0