Archived

This topic is now archived and is closed to further replies.

Question about Win98 and memory usage

This topic is 5782 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Greets, I''ve got a question about how Win98 handles memory usage. I used a system watcher, Cool Beans, to keep track of RAM usage. I noticed that my program wouldn''t unallocate some of the ram. I checked for memory leaks using a method I saw in other places on gamedev but found none. Then I decided to check and see what happens if i make a painfully simple program. All it does is return 0. Can''t get much simpler than that =) Well, turns out that if I run that exe it also doesn''t unallocate the memory it uses. What''s the deal? Does Win98 suck that bad at getting memory back? Am I missing something? Is Cool Beans wrong? Does this mean that you can''t use memory watchers to see if your program has memory leaks? As always, any insight you can give to this issue is appreciated. Blazeroni

Share this post


Link to post
Share on other sites
Do this:
  • Write down the memory usage.
  • Run your program.
  • Write it down again.
  • Run your program again.
  • Repeat.
    You should notice that after a couple runs it stops using more memory after closing it (hopefully ). Windows (like many OS''s) caches executables and libraries so that on repeated execution the secondary start times are lower.

    Share this post


    Link to post
    Share on other sites
    Ah yes, the mythical Win9x memory leaks. Expansion of the (extremely poorly implemented) VCache can be a pain. I would recommend putting a cap of 16 Megs or so on the size of the VCache - open up system.ini, find the [VCache] section, and add the following lines:
    MaxFileCache=16384
    MinFileCache=16384

    Save, and reboot.

    Share this post


    Link to post
    Share on other sites