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!!
Printable View
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!!
I'm apprehensive about downloading this, what does this program do? What makes you feel it takes up too much memory?
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.
or you could just post your code
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.
i've tried but but it wont allow me cause it exceeds the character limits.Quote:
or you could just post your code
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.
i heard that alot of string += can eat up ram since it basicly is doing a redim
thanks for the inputs guys!...
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.