Top "Memory-leaks" questions

A memory leak occurs when a program fails to release memory that it has allocated but is no longer using and is not recoverable.

Diagnosing Memory Leaks - Allowed memory size of # bytes exhausted

I've encountered the dreaded error-message, possibly through-painstaking effort, PHP has run out of memory: Allowed memory size of #### bytes exhausted (…

php memory-leaks
Memory leak detection tools

Does Apple's Xcode development environment provide any tools for memory leak detection? I am especially interested in tools that apply …

iphone xcode memory-management memory-leaks
Is a memory leak created if a MemoryStream in .NET is not closed?

I have the following code: MemoryStream foo(){ MemoryStream ms = new MemoryStream(); // write stuff to ms return ms; } void bar(){ MemoryStream …

c# .net memory-leaks memorystream
NodeJS : How to debug "EventEmitter memory leak detected. 11 listeners added"

How can I debug my application which throw this error: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use …

node.js memory-leaks eventemitter
Is it necessary to unsubscribe from observables created by Http methods?

Do you need to unsubscribe from Angular 2 http calls to prevent memory leak? fetchFilm(index) { var sub = this._http.get(`…

angular memory-leaks rxjs angular2-http
Finding JavaScript memory leaks with Chrome

I've created a very simple test case that creates a Backbone view, attaches a handler to an event, and instantiates …

javascript google-chrome backbone.js memory-leaks
ProgressDialog : how to prevent Leaked Window

I'm using ProgressDialog to prevent the user from interacting while the device is downloading stuff from internet. everything was working …

android memory-leaks progressdialog
Memory leak when redeploying application in Tomcat

When I redeploy my application in tomcat, I get the following issue: The web application [] created a ThreadLocal with key …

java memory-leaks ehcache
SQLite Android Database Cursor window allocation of 2048 kb failed

I have a routine that runs different queries against an SQLite database many times per second. After a while I …

android sqlite memory cursor memory-leaks
Why and How to avoid Event Handler memory leaks?

I just came to realize, by reading some questions and answers on StackOverflow, that adding event handlers using += in C# (…

c# design-patterns memory-leaks event-handling