Re: Memory leaks?
Originally posted by nabo1er
Salut everyone,
I'm sorry if I sound ignorant but what are memory leaks? (apart from mine when I , er, well you know,...) Do they occur often?
Ciao
Memory "leaks" are what happens when a programmer
grabs a hunk of memory for some temporary use, and
forgets to put it back where he found it. If he
does this in a piece of code that is executed
repeatedly, sooner or later the system runs out
of memory. In the old days, the computer would
eventually abruptly crash or, if you were lucky,
terminate the program. Nowadays, even Microsoft
products are sophisticated enough to try to steal
memory from elsewhere to keep feeding the leaking
program, so what one sees before a hard crash
is that the system gets slower and slower and
the hard disk gets busier and busier.
There's a rather expensive, but reputedly rather
good, software product called "Purify" that can
be used to hunt down memory leaks in C or C++
code. I hope Paradox is making enough money
off of EU to buy a copy!
Balzingo!