Re: Linked List search() and delete() trouble
Quote:
Yes, it is still a memory leak in terms of the programming language and the execution of the code. Even though the OS may free the memory at the end, not all OS'es do this.
Do you mean it is possible for part of the heap used by a process itself to remain in main memory after the process terminates?
Re: Linked List search() and delete() trouble
Quote:
Originally Posted by HighCommander4
Do you mean it is possible for part of the heap used by a process itself to remain in main memory after the process terminates?
Whether the operating system releases the memory when the program terminates depends on how the OS is implemented. There was a thread here just a couple of weeks ago discussing this.
For one, I don't believe that MS-DOS releases the memory if you use the low-level BIOS call to get the memory for you.
Regards,
Paul McKenzie
Re: Linked List search() and delete() trouble
Symbian OS. You have to plug all leaks in a Symbian app before it can be released on a phone.