Results 1 to 9 of 9

Thread: Lessen Memory Usage

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Lessen Memory Usage

    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!!
    Attached Files Attached Files

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Lessen Memory Usage

    I'm apprehensive about downloading this, what does this program do? What makes you feel it takes up too much memory?

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Lessen Memory Usage

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: Lessen Memory Usage

    or you could just post your code

  5. #5

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Lessen Memory Usage

    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.

  6. #6
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Lessen Memory Usage

    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 don't live here any more.

  7. #7
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: Lessen Memory Usage

    i heard that alot of string += can eat up ram since it basicly is doing a redim

  8. #8

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Lessen Memory Usage

    thanks for the inputs guys!...

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Lessen Memory Usage

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width