leak

Memory leak in Flash Control or .NET Application??

I have created created a windows application which loads flash movies in modal window form by selecting one of the movie from the parent form. What happens is that user can play that movie in auto mode for let's say 20 minutes. I watch the Task manager closely and what happens is my application memory goes on increasing and it never gets...

Flash Memory Leak Problem

I have got a memory leak problem in the example below(u can download the code from the link) http://brandonmeyer.net/projects/SuperPanelDemo/SuperPanelDemo.html Running in Profiler:- What I am trying to do is creating new panels by selecting the Add new panel button. I am selecting option allow Close (check box). (After creating ...

LDAP connection leak in this code

Could someone explain me why this piece of code randomly "leaks" LDAP connections? I can see the amount of established TCP/IP connections rising by time and at some stage this starts causing problems. I tried fiddling with the com.sun.jndi.ldap.connect environment properties (enabling pooling, disabling it and such) but it did not seem t...

What is causing my C#.NET memory leak, in an application that is sitting idle?

I am trying to work out some memory leak issues in an application, and I am really hoping someone here can offer me some insights that will help. I've been tinkering with this all day and I am afraid I'm completely stuck. The application I am troubleshooting works fine initially, but will become sluggish and perhaps even crash if it is ...

Memory leak when subclassing UIView

Hi All, I have a memory leak when just using subclass of UIView. It leaks 128 bytes and goes all the way to down thru CoreGraphics etc. My subclass is just a generated skeleton without anything in it. When I use just UIView instead of ScrollView no leak are reported. What could it be and what I am missing? Thanks a lot, ALex. ========...

Leak problem with initWithContentsOfFile

My app is running good and looks ok. But after I ran it with Instruments, I found tons of leaks on it. There are several things seems not wrong like a code below. Is the code really have problems? Any single word will be helpful to me. @interface GameData : NSObject { NSDictionary* _data; NSDictionary* _localData; } @end @imple...

xCode 3.2.1 Alien Leak

Used code in entire project: - (void)applicationDidFinishLaunching:(UIApplication *)application { UITabBarController *tb = [[UITabBarController alloc] initWithNibName:nil bundle:nil]; [window addSubview:tb.view]; [tb release]; [window setBackgroundColor:[UIColor blackColor]]; [window makeKeyAndVisible]; } ...

Rational Purify not showing memory leak, run-time errors?

Hello, This might not appear like a programming question, but inherently deals with code. I have a following piece of test-code, which has obvious errors like array index out of bounds, memory leak:- #include "stdio.h" #include "stdlib.h" main() { int i; char *ptr; ptr = (char*)malloc(5); for(i=0;i<10;i++) { ptr[i...

glDeleteTextures, leaking?

Hi I found a rather disguting behaviour of glDeleteTexture, deleteing only parts of the aqcuired memory (GPU side and as Textures get saved back for the sake of speed in RAM), which in my case, is a showstopper bug, my program eating up all memory. I don't want/require you to read all of the code, it's just a demo, I'd rather know how ...

twisted connectTCP memory leak?

I found my program have a memory leak when I used connectTCP. <class 'twisted.internet.tcp.Client'> <<class 'twisted.internet.tcp.Client'> to ('10.25.76.117', 8086) at 2066c5b0> <type 'dict'> {'_tempDataBuffer': [], 'protocol': None, '_tempDataLen': 0, 'realAddress': ('10 <type 'tuple'> ('10.25.76.117', 8086) <type 'list'> ...

Need help with memory leaks in RSS Reader

I'm trying to write a simple RSS reader for the iPhone, and it appeared to be working fine, until I started working with Instruments, and discovered my App is leaking massive amounts of memory. I'm using the NSXMLParser class to parse an RSS feed. My memory leaks appear to be originating from the overridden delegate methods: - (void)p...

How to ignore false positive memory leaks from _CrtDumpMemoryLeaks?

It seems whenever there are static objects, _CrtDumpMemoryLeaks returns a false positive claiming it is leaking memory. I know this is because they do not get destroyed until after the main() (or WinMain) function. But is there any way of avoiding this? I use VS2008. ...

iPhone memory leak and release problem on sorted array

Hi, I'm having some troubles with the code below: NSSortDescriptor *idDescriptor = [[[NSSortDescriptor alloc] initWithKey:key ascending:ascending] autorelease]; NSArray *sortDescriptors = [NSArray arrayWithObject:idDescriptor]; NSArray *orderArray = [array sortedArrayUsingDescriptors:sortDescriptors]; NSMutableArray *result = [NSMuta...

Why is my NSURLResponse leaking memory when archived?

I found a leak in my code where archiving and unarchiving an NSURLResponse was causing a leak, and I can't figure out why. - (void)doStuffWithResponse:(NSURLResponse *)response { NSMutableData *saveData = [[NSMutableData alloc] init]; NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:s...

Where is the leak here?

-(IBAction)gameplayButtonClicked{ GamePlayViewController *screen3 = [[GamePlayViewController alloc] initWithNibName:nil bundle:nil]; screen3.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController:screen3 animated:YES]; [screen3 release]; } ...

Memory Leak in Application Main()

The following code is producing a memory leak on the in retVal line: NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; Any ideas on how to fix? ...

iPhone Photo Album memory leak

Hello! I made a photo album viewer for iPhone. I have made a scrollview in which i put imageviews with the images. The images are pretty large, about 1 Mb. I have to show about 200 photos. I don't know why my solution leaks, I guess I don't release the imageviews well. I read many topics about these kinds of problems, about image ca...

Memory problems with NSMutableDictionary, causing NSCFDictionary memory leaks

Hi! Help me please with the following problem: - (NSDictionary *)getGamesList { NSMutableDictionary *gamesDictionary = [[NSMutableDictionary dictionary] retain]; // I was trying to change this on the commented code below, but did have no effect // NSMutableDictionary *gamesDictionary = [[NSMutableDictionary alloc] init]; // [g...

Analyzer marks a potential leak for this construct

With the following code the analyzer marks the setMyDict selector call as a potential leak and in dealloc it states "Incorrect decrement of the reference count is not owned at this point by the caller" - (id)init { if (self = [super init]) { [self setMyDict:[[NSMutableDictionary alloc] init]]; } return self; } - (void)deall...

Oracle xmltype extract function never deallocate/reclaim memory until session down

Hi, I'm using Oracle 9.2x to do some xmltype data manipulation. The table as simple as tabls(xml sys.xmltype), with like 10000 rows stored. Now I use a cursor to loop every row, then doing like table.xml.extract('//.../text()','...').getStringVal(); I notice the oracle instance and the uga/pga keep allocating memory per execution of...