memory-leaks

Memory release unexpectedly

Hello, I am in a strange dilemma . I have a class clsA which has some methods .I am creating instance of ClsA in other class and accessing methods of clsA . I have declare object of clsA in header file and I m writing these two lines simultaneoulsy . clsAobj = [[clsA alloc] init]; [clsAobj someemethod]; The problem is that while Debu...

iphone sdk 4.1 memory leackage: may be scene replace problem (cocos2d)

I have used scheduler to return from a scene to the main menu. There is nothing in the scene page except menu. But scenes are not deallocating and memory leakage increasing as i navigate through the scenes. So application is not closing(kept running in background when close using iphone/ipod button) but crashing. Hope some of you faced ...

NSArray Memory Leak!! Not able to get Why??

Hi I am getting memory leak in Instruments for the following line of code . NSArray *itemsList=[[NSArray alloc] initWithObjects:@"Love", @"Hate",@"Happy",@"Sad", @"Desire",@"Anger",@"Hope",@"Fear",@"Silly",nil]; I am using the below code: arrayList is also released in dealloc block. NSArray *itemsList=[[NSArray alloc] init...

IPhone Leaking Memory in tight loop

Hi all, I'm having a problem with my memory footage, it keeps on increasing even though I have properly released the objects in tight loop. The app will crash with "out of memory error" after some time... I've drilled down the problem to this: /******************** Begin SimpleObject ***********/ //@interface SimpleObject : NSObject { ...

Finding Javascript leak in Chrome

I do a lot of ajax calls on my site and was using jQuery 1.4.2 until I noticed that it was leaking. It was leaking with IE, Firefox, and Chrome. After some investigation I found the IE fix for it. I tried it but it didn't fix it for any of the three browsers. I then found a posting on here where the person compared Yahoo's Javascript...

Memory leak during object construction in .NET

http://www.devx.com/tips/Tip/5573 The above post states that there will not be memory leak during object construction. How about the code below? Will this cause any memory leaks? I see that the memory usage for the sample application increases slowly (in task manager) even after forcing the GC collection. namespace WindowsFormsApplica...

FTP upload - memory leak problem

Hi, I'm working on a personal project that uploads and downloads big files using FTP protocol. It's working fine except the memory leak that I recently noticed. I don't know exactly what the problem is. It could be memory leak or bad programming. The memory amount used by this application increasing every second while uploading. Here is ...

What would be a proper way to initialize a instance variable in Objective C without leaking memory?

I have a class like this: @interface MyCollection : NSObject { NSMutableDictionary *data; } and in the implementation of it, I have a method to init it like this: - (id) init { if(self = [super init]) { self.data = [[NSMutableDictionary alloc] init]; } return self; } Now when I create a object of this ...

Memory Leak - com.mysql.jdbc.ConnectionPropertiesImpl$*ANY*ConnectionProperty

I seem to have a memory leak, one of the culprits seems to be the ConnectionProperty, whether it is String, Int or Boolean ones. e.g.:'com.mysql.jdbc.ConnectionPropertiesImpl$BooleanConnectionProperty', millions seem to be staying around and not being GC'd. Here are my settings for the DB, Session Factory, Hibernate and Pooling etc..: ...

Memory usage of C++ application on Windows

Hi, I have an application that does some Monte Carlo simulation. For each run, a 12MB file is loaded into a std::vector<MyData>. The object which loads and stores the data is referenced by a boost::shared_ptr which is removed from the stack when the run finishes. I see the memory usage of the application grow in Windows Task Manager to...

Errors Compiling Prefix.pch file, Causing bigger problems

Update 2 I discovered that if I change the "Base SDK" to "iOS Simulator 3.2" (iPad ???) it does not give me this error when doing Build & Analyze... But this is supposed to be an iPhone App. I am running XCode 3.2.4... am I missing something when I create the Project? I am choosing iPhone as the target device, not sure what's going on. ...

How to pin point a memory leak in a heap dump using jhat/jvisualvm tool?

How to pin point a memory leak in a heap dump using jhat/jvisualvm tool? I have a heap dump of our application generated using jmap during an "OutOfMemoryError:Java Heap Space error". I used jhat to analyse the dump but the info is too huge and I could not find where the memory leak occurred.Please help me in pin-pointing the objects t...

memory leak when using COM IDispatch::GetTypeInfo() in C#

I have the following function in a COM dll (C#, .NET framework v2): public void Leak(object jsObject) { Type comType; IDispatch disp = (IDispatch)jsObject; disp.GetTypeInfo(0, 0, out comType); // this line causes the leak Marshal.FinalReleaseComObject(disp); Marshal.FinalReleaseComObject(jsObject); disp = null; ...

iPad and memory problems

Hi, is it possible, that when the iPad application is forcibly closed/killed by the iOS becuase of 'out of memory situation', the memory the application allocated is not 100% released? I think that the memory allocated directly by the client is released - there is even HW support for this, but we were observing that if the application i...

Component doesn't get garbage collected

I just noticed a strange behaviour while looking at my application in the Flash Profiler. When I click a button in my TitleWindow then the TitleWindow doesn't get garbage collected after it is removed. I have no idea why that is happening. I've created a small example application, so you can try it out yourself: Main.mxml <?xml versio...

Android: Window leaks on finish

I have read the other window leak posts and have tried what what suggested there to no avail. I have 3 activities: A, B, and C. Activity A gathers information from the user. Activity B displays a spinning ProgressDialog while it communicates with a server on another thread. When the thread finishes, it dismisses the ProgressDialog and s...

Can I stop java.util.logging from contributing to a memory leak?

After stopping my web app, a significant amount of PermGen is not being released. The culprit seems to be the WebappClassLoader (in Tomcat, but it happens in Jetty too), which is kept in memory by references from a bunch of other objects. The following image shows that objects that refer to WebappClassLoader, and the things that refer to...

iPhone: memory leak on autoreleased object?

Dear all, I am using the XMLParser class, which contains an array with XMLElement objects. The XMLElement is being allocated using the autorelease operation. However, for some reason I'm getting a memory leak (using instruments) on this line: self.currentElement = [[[XMLElement alloc] init] autorelease]; I'm also releasing the XMLPar...

Techniques for profiling memory in Safari desktop and iOS?

Updated 10/21: Changed title and question in order to possibly get an answer (other than "no"). We're experiencing leaks in Safari (confirmed in Windows and Mac, suspected in iOS). Are there any Safari extensions that lets one profile JavaScript/DOM memory usage to discover potential leaks? Better yet, is there any tool that can be us...

Is it possible to patch a memory leak using a try-catch statement?

if(pCoeff.size()>thisCoeff.size()){ difference=pCoeff.size()-thisCoeff.size(); for(int i=thisCoeff.size(); i<thisCoeff.size()+difference;i++){ thisCoeff.add(i, new Double(0.0)); //this line throws errors } } I've isolated this portion of my program as being the cause of memory leak, is it...