Hi,
I should preface this by saying that I'm a civilian, not a
software engineer, but have been successful so far porting a huge
Wall Street financial simulation I wrote years ago in PB-DOS to
PB/DLL over the last 8 months, but I'm noticing that if I run
the program for several hours as users will do), my "Windows
Resources" steadily dwindles from about 84% shortly after I start
the program, to about 20% (and still falling) after running it
about 3 hours.
Eventually, if I run it long enough, I suspect Windows will
issue "Dangerously Low on Resources" messages.
My .EXE is about 700k, and does use some fairly large arrays,
but those are all set at the start of a session, and randomly
filled up with data, so the data in the arrays merely changes
during the game -- no new or larger arrays are created.
I was considering having the program periodically save its data
to disk, and then shell to a small secondary .EXE to display
some important announcement in the course of the game, and
close the main program, while the small program, after a few
seconds, reloads the main, but I see now that even AFTER exiting
the program entirely, Windows is still showing only about 26%
resources free, with no programs loaded. This is on a system
with 128 megs of RAM, and it does about the same on an old Win
95 laptop I've test it on, with only 16 megs, so the amount of
RAM is apparently not a significant factor.
Any thoughts on why the resources steadily diminish and what,
if anything can be done to prevent this from happening? It's
a great little game, and I have a lot of users of the DOS
version eagerly waiting for the Windows version, but it looks
like it's not going to be commercially viable if I can't stop it
from eating up Windows "resource."
------------------
I should preface this by saying that I'm a civilian, not a
software engineer, but have been successful so far porting a huge
Wall Street financial simulation I wrote years ago in PB-DOS to
PB/DLL over the last 8 months, but I'm noticing that if I run
the program for several hours as users will do), my "Windows
Resources" steadily dwindles from about 84% shortly after I start
the program, to about 20% (and still falling) after running it
about 3 hours.
Eventually, if I run it long enough, I suspect Windows will
issue "Dangerously Low on Resources" messages.
My .EXE is about 700k, and does use some fairly large arrays,
but those are all set at the start of a session, and randomly
filled up with data, so the data in the arrays merely changes
during the game -- no new or larger arrays are created.
I was considering having the program periodically save its data
to disk, and then shell to a small secondary .EXE to display
some important announcement in the course of the game, and
close the main program, while the small program, after a few
seconds, reloads the main, but I see now that even AFTER exiting
the program entirely, Windows is still showing only about 26%
resources free, with no programs loaded. This is on a system
with 128 megs of RAM, and it does about the same on an old Win
95 laptop I've test it on, with only 16 megs, so the amount of
RAM is apparently not a significant factor.
Any thoughts on why the resources steadily diminish and what,
if anything can be done to prevent this from happening? It's
a great little game, and I have a lot of users of the DOS
version eagerly waiting for the Windows version, but it looks
like it's not going to be commercially viable if I can't stop it
from eating up Windows "resource."
------------------
Comment