PDA

Click to See Complete Forum and Search --> : Lessen Memory Usage


daimous
Sep 27th, 2006, 12:37 AM
hi! can you guyz please help me on how to lessen the memory usage of my application. What are the factors that makes my application use more memory? by the way i attached my source code. Thanks in advance!!

mendhak
Sep 27th, 2006, 04:28 PM
I'm apprehensive about downloading this, what does this program do? What makes you feel it takes up too much memory?

jmcilhinney
Sep 27th, 2006, 05:35 PM
I for one will not download other people's projects without a pretty good reason. Someone saying "here's my project, fix it" is not a good reason in my opinion. If you want us to make effort for you then I think you should make more of an effort for us. You've not made any explanation of what the issues are. For all we know there is no way to reduce the memory usage. Also, for all we know your app will reformat our hard drives. To know that it doesn't we'd have to read every line of your code before running it.

Crash893
Sep 27th, 2006, 06:32 PM
or you could just post your code

daimous
Oct 2nd, 2006, 05:54 AM
ok sorry...i dont have any intention of "here's my project, fix it" but what i want is for someone to look into my code and give some suggestion or criticize it for me to improve it thats why i want thats why i attached the source code.
or you could just post your code

i've tried but but it wont allow me cause it exceeds the character limits.

wossname
Oct 2nd, 2006, 06:22 AM
Using large arrays, collections, lots of images in memory, lots of strings, recursion all contribute to RAM wastage. You know your app better than anyone else so you should be able to guess where you are using too much RAM

Also you can pretty much ignore what task manager tells you about your RAM usage, its lying.

Crash893
Oct 2nd, 2006, 11:34 PM
i heard that alot of string += can eat up ram since it basicly is doing a redim

daimous
Oct 5th, 2006, 02:37 AM
thanks for the inputs guys!...

jmcilhinney
Oct 5th, 2006, 02:57 AM
The key to memory usage is to create as few objects as possible and release those objects you're finished with. The thing to do is to understand when objects are being created and how to release them when you're finished with them. There's plenty of information on MSDN and elsewhere about making your code more efficient, all just waiting to be read.