Date: Thu 15-Jan-1998
Date: Thu 15-Jan-1998
Publication: Bee
Author: CURT
Quick Words:
iinfo-memory-leakage-Brand
Full Text:
INTERNET INFO FOR REAL PEOPLE: Memory Leakage
By Bob Brand
Attention power surfers! Has this ever happened to you? While surfing the Net
using Windows '95/'98, suddenly a nasty blue warning message box pops up:
"Windows is running low on system resources and may become unstable. Please
close any unused applications or restart Windows."
Uggh!! How can this be? With 80 megabytes of RAM, and a half full 2GB-plus
hard disk, there should be plenty of "resources." Well, not exactly.
It gets worse. If the user ignores the warning, the nasty message returns. In
fact, every time the warning appears, you must click the "OK" button in order
to continue. If using a program with many icons, suddenly they start to "wash
out" -- not appear in full detail.
Deterioration can reach the point where the desktop becomes replaced with the
"Blue Screen of Death." The user is forced to reboot the computer. Sometimes
the computer hangs completely (does not respond to mouse or keyboard commands)
and the only solution is to turn the computer off.
Everything is reset. In this drastic event, any information not saved to disk
is trashed to bit-heaven.
The Cause
In order for any program to run on a computer, it must be retrieved from the
hard disk (or network) and loaded into the computer's memory. When the user
exits a software application, the memory used by an application is returned to
the memory pool.
Poorly written programs do not return all the memory, thus reducing the size
of the pool. As the pool shrinks, the warning messages start to appear. The
computer becomes unstable. Welcome to cumulative memory leakage.
The frantic pace of the Internet and rush to get new software products on the
market ahead of competition often results in sloppily written software. In
fact some very popular Internet and general purpose software applications leak
memory. Here is a sample as reported on the Chicago-Soft, Ltd website: AOL
v2.5 and 3.0, Corel Draw 5.0, MS Excel 5.0, HP DeskJet 870C printer driver,
Netscape 2.0, 3.01, and Navigator Gold 3.0, Quicken for Windows, WinWord 6.0.
There are many more.
Changing Habits
As net-sters become more accomplished surfers, they often place greater
strains on computer resources. It is not unusual to find people running
several browsers simultaneously, listening to music at Spinner.com, word
processing while having anti-virus software and other background applications
running. Over time, memory leakage problems reach more and more users.
Like the common cold, a "silver bullet" cure remains elusive. Microsoft has
been hearing the complaints. As a result, memory management in Windows '95/'98
is superior to Windows 3.x.
Later versions of many common software packages tend to cause less leakage
than earlier code. Programs written in Java programming language, with its
automatic garbage collection feature, should be better than programs written
in C++.
One way to minimize leakage is to avoid opening/closing/opening the same
program. This type of activity aggravates the cumulative effect of inefficient
resource de-allocation.
A shareware version of Chicago-Soft's WinMiser may be helpful to surfers who
currently use Windows 3.x. Windows '95/'98 users may find Mcafee's Hurricane98
(webprice: $40) useful in minimizing memory leakage.
The complexity of the Windows operating system coupled with bloated/slipshod
software lies at the root of this problem. More power users are starting to
dabble in the Linux operating system for personal use. Somehow I feel memory
leakage is less of a problem with Linux. Time will tell.
URLs (Uniform Resource Locators) of interest:
http://www.quickref.com/wmpro/leakanal.html
http://www.beyond.com/PKSN100890/prod.htm
http://www.thebee.com/bweb/iinfo133.htm
(This is the 137th of a series of elementary articles designed for surfing the
Internet. Next, Hacking Furby is the subject on tap. Stay tuned. Until next
week, happy travels through cyberspace.
Previous issues of "Internet Info for Real People" can be found at
http://www.thebee.com. Please e-mail comments and suggestions to
rbrand@JUNO.com or editor@thebee.com.)
