Need help freeing up resources on Windows 98

Brad4566

Brad
Local time
Yesterday, 20:15
Joined
Nov 19, 2004
Messages
8
I was wondering if anybody out there knows what code I could use to free up system resources and/or memory running a program under Windows 98. What I am doing is making this program for a company, but the problem I have is one of my forms in Access is using all the available system resources and you have to restart in order to return them. I was wondering if anyone knew what code to use to return any used resources and memory when the form unloads.
 
Last edited:
are you using one of the predefined styles for your form ?
 
Nope I made all forms to the specifications that were given to me.
 
Win98 is one of those older versions that has a fixed-size resource list due to the way it is stored. You have 64Kb of resources and then you are done. The resources are things like file handles, window handles, etc. Since that version of Windows doesn't do garbage collection very well, you are stuck once you use up the system resources.

The way to fix this problem is to determine what it is that uses up the resources and find a way to control the resource hog. USUALLY, opening a lot of forms on a frequent basis will do it to you very quickly. Opening text files for import/export will also eat up the resource list.

You are right that you have to restart your system to get the resources back. And I regret to inform you that no solution exists for that problem (as far as I know) because of the way Win98 approaches the problem of garbage collection.
 
Oh darn. Alright then thanks for the help and I will try to figure out someway to get that program working around it
 

Users who are viewing this thread

Back
Top Bottom