Results 1 to 16 of 16

Thread: Resources

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    95
    recently my resources have been getting eaten up! this never happened before!! . i have 128MB RAM. what's going on??? how can i stop this or at least monitor what's eating them up??

  2. #2
    Guest
    Empty the recycling bin and how much stuff do you have running?

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I use Resource Meter to monitor my resoruces, they'll often get low when i use Internet Explorer so looking at the gauge in the system tray, you could know when to be careful opening more appz.
    Shoud be in windows directory:

    C:\WINDOWS\RSRCMTR.EXE
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    New Member
    Join Date
    Aug 2000
    Location
    Lake City, Fl
    Posts
    6
    Things to do:

    Empty your temp file. (Reboot before and after you do this, do not delete anything that has today's date)
    Empty your Recycle Bin
    Empty your temp internet files.
    Defrag
    Scandisk

  5. #5
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    There maybe extra programs loaded in memory that are draining your resources. For example both ATI and Diamond load extra program into memory that allow you to access the start menu or video functions anywhere. Unless you need these types of programs you can remove them and free up memory.

    You can do this by rebooting, then do ctrl+alt+delete and see what you have running. The only two programs that need to be running are explorer and systray. Most everything else is not needed. You will find most of these programs loading in the start menu and/or in the registry (HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\(all the run entries) Just delete the ones that you dont need. I would write down the shortcuts and backup the registry before anything. This should help you free up some memory.

    Also large wallpapers and lots of icons on the desktop can kill system resources also.

    One final thing, I have notice that any program I make in VB that does alot of memory intense things will drain some resources each time I run it. I now have the resource meter running all the time so I will know when it is time to exit VB and when to restart my machine.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    If you have problems with VB eating your resources there are probably some basic problems;
    You don't unload your objects correctly, no freeing all memory.
    Your apps have too many controls in runtime.
    You have too many designtime classes involved.

    Another think i think is that recyclebin has nothing to do with it, or other harddisk related stuff. Also system resources isn't directly proportional to physical memory
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7
    Guest
    You could also go to Start > Program > Accessories > System Tools > Clean Disk. That'll delete a whole bunch of useless sh**. And as manual suggested, Defrag your computer as well.

  8. #8
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    while we're on the topic of defrag..I have a 20G drive and I once defraged it overnight and it seemed to finish. Last month I left it for 2 days and it never got by 10%.

    Is there something that stops defrag from doing it's stuff?
    ie..I don't use screensavers..just the windows black out on low res if not in use for a certain period of time...

    I was thinking I have to format my drive but I really don't want to do that...it's far too time consuming to get everything back.

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  9. #9
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Originally posted by kedaman
    If you have problems with VB eating your resources there are probably some basic problems;
    You don't unload your objects correctly, no freeing all memory.
    Your apps have too many controls in runtime.
    You have too many designtime classes involved.

    Another think i think is that recyclebin has nothing to do with it, or other harddisk related stuff. Also system resources isn't directly proportional to physical memory
    I manually unload everything from objects to forms and I still get memory leaks even though they are small. With one program, after about 25 runs of my program my resources are about gone. If I exit VB and go back I wll get back about 95% of the resources I lost. So after about 10 VB restart I have to restart my computer. Also if I make a .exe of my program I can run it all day long with very little or no memory leaks. I think VB got a buggy memory allocator.

    You need hard drive space to make a swap file but it doesn't need much. Windows needs at least 100mb free on boot to make a correct swap file. Windows will only use a maxim of 250mb for swaping correctly. Anything greater then 250mb and Windows with now use it correctly. At least that was true for 95 & 98. Scan disk and defrag will do very little to help your system resources. If you are lucky it will speed Windows up some.

  10. #10
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024

    Re: <?>

    Originally posted by HeSaidJoe
    while we're on the topic of defrag..I have a 20G drive and I once defraged it overnight and it seemed to finish. Last month I left it for 2 days and it never got by 10%.

    Is there something that stops defrag from doing it's stuff?
    ie..I don't use screensavers..just the windows black out on low res if not in use for a certain period of time...

    I was thinking I have to format my drive but I really don't want to do that...it's far too time consuming to get everything back.

    Anything that does a HD scan, read, or write will stop a defrag. Make sure to close all your programs before defraging. Antivirus are the kings at stoping a defrag. I have to kill mine each time I do it.

  11. #11
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    The larger a program is the harder it is to avoid memory leaks, i think. VB surely is one of them but Internet Explorer is worse
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  12. #12
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    Look into your registry and look what kind of programs are starting in there, maybe theres something in there u dont want, or dont need.

    U can also look in
    win.ini - for useless system files.
    autoexec.bat

    and all that, if u need more info, give me a shout.
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  13. #13
    Guest
    Press Ctrl+Alt+Del and terminate programs that are unnecessary.

  14. #14
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Talking

    Some programs are hidden from the alt-ctrl-delete
    The best way is to terminate them before they start up, or find a way to close hidden progs.
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  15. #15
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362

    Re: <?>

    Originally posted by HeSaidJoe
    while we're on the topic of defrag..I have a 20G drive and I once defraged it overnight and it seemed to finish. Last month I left it for 2 days and it never got by 10%.

    As Technocrat said, anything that accesses the hard drive
    will cause defrag to restart the whole process from scratch.
    Make sure you have no programs running when you defrag. Also <Ctrl><ALT><DEL> will bring up the manager, so close all but explorer and systray. Even better, boot to safe mode when defragging.
    Donald Sy - VB (ab)user

  16. #16
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Another good thing is that you uninstall stuff you don't need for the moment, while keeping the installers so you can reinstall anytime you want.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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