Re: Memory Leaks?

From: Ken Gardner (KenGardner_at_discussions.microsoft.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 09:51:03 -0800


"Tim Slattery" wrote:

> >What is memory leak? Does it ever leak? What cause memory to leak? Someone
> >had asked me yesterday and I wasn't able to give him a clear answer.
 
> It's a programming mistake. Programs constantly obtain memory from the
> operating system. Generally, when they finish with it they are
> supposed to return it. If a program asks for memory but doesn't return
> it when it finishes with it, the memory has "leaked". If this keeps
> up, eventually the program will ask for memory and be told that there
> isn't any.

Just to be clear, what is supposed to happen is that when an application is
closed, the application code may still be in the system cache (assuming
sufficient RAM, of course), but it should no longer be taking up the memory
used for applications, right?



Relevant Pages

  • Re: If Macs have no spyware....
    ... >had made a complete code review of its operating system and removed all ... and writing new data into those memory locations would ... >but when the data exists on the stack, it can cause very large problems. ... >location that needs to be written in place of the correct execution ...
    (comp.sys.mac.advocacy)
  • Re: If Macs have no spyware....
    ... First you yammer about being a Mac advocate, then bad mouth me for dumping XP in favor of a Mac. ... Supposedly Microsoft had made a complete code review of its operating system and removed all the buffers which could overflow. ... the fundamental problem is that the basic architecture of Windows has two fatal flaws in its memory management and while these remain in the software the ad hoc patches will never be enough to make Windows a secure operating system. ... These problems are bad enough when dealing with data in the one routine but when the data exists on the stack, it can cause very large problems. ...
    (comp.sys.mac.advocacy)
  • Re: [Lit.] Buffer overruns
    ... > floating point support or a memory expansion option. ... had virtual memory support grafted on. ... > where the modified instruction was fetched from. ... vis-a-vis the official coporate strategic operating system TSS/360. ...
    (sci.crypt)
  • Re: PDP11 Memory Mangement
    ... used for data and there is less physical memory than ... even though many programs did require overlays - such ... what I accept as paging since the same program addresses ... having worked with and helped to design an operating system ...
    (comp.sys.dec)
  • Re: 64-bit G5?
    ... processes do not normally share memory. ... The bottom line is Apple needs to develop a 64-bit operating system. ... extra registers with x86-64 are only available when running in 64-bit mode ...
    (comp.lang.lisp)

Loading