SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Dream Machine ( Build your own PC )

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Howard R. Hansen who wrote (2316)9/7/1998 10:40:00 AM
From: Sean W. Smith  Read Replies (2) of 14778
 
A memory leak occurs when a program obtains memory from the operating system for its use and then doesn't return the memory to the operating system when the program exits.

Almost. a Corrected defintition would read as follows...

A memory leak occurs when a program obtains memory from the operating system for its use and then doesn't return the memory to the operating system as it executes. Even programs leaking memory will have their memory returned to the heap when the process terminates.

The OS tracks which process' allocate memory so even if a program leaks when it terminates the OS can reclaim the memory as the PID for which the memory was reserved no longer exists.

Leaking programs are easier to spot in NT because you can monitor process size over time and watch it grow. Generally programs that run continously like device drivers, tsr's etc cause these problems as the rest will clear up the problems when they terminate.

Sean
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext