memory-leaks

InputMethodManager holds reference to the tabhost - Memory Leak - OOM Error

强颜欢笑 提交于 2019-12-22 03:42:26
问题 View hierarchy is as follows TabActivity -> ActivityGroups -> Activities . Using MAT I found that TabWidget is referenced by TabHost which is referenced by InputMethodManager , hence TabWidget is leaked. On Subsequent launch of application OutOfMemory Error is thrown. Similarly all my activities are also referenced by InputMethodManager . (After closing the application all my activitygroups, activities, tabactivity, tabhost and tabwidget are leaked!!) On Properly finishing the application

Will jquery empty() method clear the event listeners created through non jquery means

核能气质少年 提交于 2019-12-22 03:24:57
问题 I have an element with a lot of child elements. I want to clear the content of this element and replace it with new structure. The child elements are assigned with various event listeners and not all of those listeners are created through jquery bind method. If I use jquery's empty method to clear the element will it remove all the event listeners or will it clear only the listeners created through jquery bind method? 回答1: As several commenters have mentioned, the jQuery docs say that empty()

There is insufficient system memory in resource pool 'internal'

时间秒杀一切 提交于 2019-12-22 02:02:10
问题 SQL Server 2008 Linked Server and ad-hoc INSERTs cause a rapid memory leak which eventually causes the server to become non-responsive and ends with the following error: Msg 701, Level 17, State 123, Server BRECK-PC\SQLEXPRESS, Line 2 There is insufficient system memory in resource pool 'internal' to run this query. Location: qxcntxt.cpp:1052 Expression: cref == 0 SPID: 51 Process ID: 1880 The server remains non-responsive until SQL Server is restarted. Software in use: Windows Vista Ultimate

iPhone - Multiple CGBitmapContextCreateImage Calls - ObjectAlloc climbing

為{幸葍}努か 提交于 2019-12-22 01:02:43
问题 Has anyone else come across this problem? ObjectAlloc climbs as a result of the CGBitmapContextCreateImage. Does Apple's software not fully releasing the objectalloc? I am resizing images 12 times a second with a NSTimer. During resizing of the image I am also adding a photoshop like Gaussian blur effect by including interpolationQuality. After using Instruments it does not show any memory leaks but my objectalloc just continues to climb. It points directly to CGBitmapContextCreateImage .

Memory-leak at a wrapped XMLHttpRequest function

匆匆过客 提交于 2019-12-22 00:59:00
问题 I wrote the following : function ao(){ this.count=0; this.flag=0; this.tmr=0; var self = this; this.make=function(){ //log("before: "+this.url+" "+this.xhr); self.xhr = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP'); //log("after: "+this.xhr); } this.request = function (method, url, sendStr, delay){ this.delay=delay; if(delay && self.tmr==0){ self.start(); } if(self.flag==0){ this.method = method; this.url = url; this.sendStr = sendStr; self.make();

how is memory allocated for local variables?

て烟熏妆下的殇ゞ 提交于 2019-12-22 00:49:27
问题 int* pi; { int ar[1000000]; int a =3,b=4; ar[3]=a*b pi=ar; }//ar is destroyed int ar2[]={5,6,7,8,9}; char* f="zcxzsdaaaaaaaaa"; std::cout<<pi[3]<<std::endl;// prints 12 I have 2 questions: I heard that the stack contains only pointers to data. And if so where is the data stored? For example char* a="bbbb"; a - placed on stack, "bbbb" - somewhere else. Where? Doesn't the above code working correctly mean a memory leak of 1000000 bytes? Variable ar is destroyed but the data that it pointed to

PHP Object new method for Class, Memory Leak and Unset Method

落花浮王杯 提交于 2019-12-22 00:28:22
问题 I have Created following class in flie index.class.php :- <?php class index{ public function loadTitle() { $title = "Welcome to My Website"; return $title; } } ?> and now, I am using it like below in my index.php file <?php require_once("index.class.php"); $obj = new index(); echo $obj->loadTitle(); ?> , now my question is Page will become heavy with lots of article and images, and i will expect 1500-2500 user every day in it. Do, i need to also unset memory, i know PHP has its own garbage

In MVVM, does hooking a model item's event in the ViewModel cause a memory leak?

我怕爱的太早我们不能终老 提交于 2019-12-22 00:27:41
问题 Trying to track down some memory leaks in our WPF/MVVM app and something occurred to me... If you listen to ModelItem events in its associated ViewModel with an instance-specific handler, doesn’t that make the ViewModelItem hang around as long as the ModelItem still exists? Consider this case... public class ItemViewModel { public ItemViewModel(ModelItem item) { this.Item = item; item.SomeEvent += ItemSomeEventHandler } Public ModelItem Item{ get; private set; } // Note: This is a handler on

Android - memory leak or?

半城伤御伤魂 提交于 2019-12-21 23:20:13
问题 two days ago i noticed something. I have a spinner over a map activity. In the OnCreate() method of the activity i populate the spinner with data. After that i start the heap analyzer in DDMS i begin to open/close the spinner. I noticed the VM allocate memory when i open the spinner items, but when i close it, the VM do no free this memory. I've tried to start the GC, but the memory is still allocated. i did this 20 times one by one and the allocated memory increased from 3.5MB to 7MB. What

How can I find the cause for a memory leak in Fortran 2003 program?

本秂侑毒 提交于 2019-12-21 22:57:47
问题 I have a Fortran program I wrote using Fotran 2003 and compiled using Intel(R) Fortran Compiler XE for applications running on IA-32, Version 12.1.2.273 Build 20111128 after running my program for a long run ( it's a physical computation ) I have the out read: Insufficient memory to allocate Fortran RTL message buffer, message I guessed it has to do with memory leak in my program How can I find out where is the leak occurring and how to fix it? 回答1: As the first answer indicates, your