leak

4.6 QWebView memory leaks?

I wrote a quick test app to use the google analytics scripts in a client app. It works fine using QWebView and QWebFrame* pFrame = m_pWebView->page()->mainFrame(); pFrame->setContent(arrayHtml); pFrame->evaluateJavaScript(strScript); But no matter what I do I cannot get it to release memory. Every time I call the script it keeps addi...

0x0 memory leak [iphone]

I have a leak in my app I really can't make sense of, can anyone help me with it? Instruments Stacktrace: 0 libSystem.B.dylib calloc 1 WebCore CurrentThreadContext() 2 WebCore WKSetCurrentGraphicsContext 3 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:letterSpacing:includeEm...

I get an exception if I leave the program running for a while

Platform : Win32 Language : C++ I get an error if I leave the program running for a while (~10 min). Unhandled exception at 0x10003fe2 in ImportTest.exe: 0xC0000005: Access violation reading location 0x003b1000. I think it could be a memory leak but I don't know how to find that out. Im also unable to 'free()' memory because ...

java.lang.OutOfMemoryError: bitmap size exceeds VM budget - android

Hi I developed an application that uses lots of images on android. The app runs once, fills the information on the screen (Layouts, Listviews, Textviews, ImageViews, etc) and user reads the information. There is no animation, no special effects or anything that can fill the memory. Sometimes the drawables can change. Some are android r...

iPhone + stringWithUTF8String + memory leaks

Hello, I am using following code in my application to read the string value from database: objPlayer.playerName = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectstmt, 2)]; When I run the Instruments to find memory leaks it gives me NSCFString leaks at above line. What should I do, please help me. Regards, Pratik ...

NSString memory leak

//opening DB if(sqlite3_step(statement) == SQLITE_ROW) result = [NSString stringWithUTF8String:(char*)sqlite3_column_text(statement,0)]; //! else result nil; return result; //close DB ...

Track all Objective-C's alloc/allocWithZone/dealloc

Sorry for long description, however the questions aren't so easy... My project written without GC. Recently I found a memory leak that I can't find. I did use new Xcode Analyzer without a result. I did read my code line by line and verified all alloc/release/copy/autorelease/mutableCopy/retain and pools... - still nothing. Preamble: St...

Debugging huge memory leak in application

My application has just leaked 1.5GB of memory. I guess since I don't have a ton of data available to me, I'm assuming that it's leaked the memory, but it could also just be holding onto it. I'm currently using perfmon to gather as much information as I can, to try to understand what could be causing the problem. I don't have a whole ...

Windows Workflow Runtime leaks a ton of memory

Here's a overview of my workflow implementation: GUI thread starts worker thread worker thread analyzes some data worker thread starts several other worker threads to work on subsets of data each of these last worker threads creates a workflow runtime and executes a sequential workflow Up until now, I've been creating a new WorkflowR...

Memory Leak with NSMutableString appendString

I am using an XMLParser to parse some XML data, which uses an NSMutableString *resultString to store the tag characters. At every (- parser: didStarElement...) method I allocate and init the resultString-ivar. - (void)parser: (NSXMLParser *)parser didStartElement: (NSString *)elementName namespaceURI: (NSString *)namespaceURI qualified...

winnovative pdf - out of memory and other random exceptions

Hello, we have an asp.net 3.5 application that allows users to generate many charts and export them via pdf. This works fine for smaller pdfs (less than 100 pages), but when we do larger ones, we get random errors. some of the errors we have seen are: --System.OutOfMemoryException --Could not render the HTML string. Could not get imag...

NSMutableArray initWithContentsOfFile memory leak

I´m new in iPhone development and I have this memory leak. I´m using an NSMutableArray to retreive the content of a .plist file located in the Documents directory. The first time I use it, everything goes fine, but if I call it several times I get a memory leak. This is my code: - (void)viewWillAppear:(BOOL)animated { [super viewWi...

iPhone: leaks from other Apps taking up RAM??

I'm reading some people stating that if another (3rd party) app on someone's iPhone has been leaking memory, that this may reduce the (mystery) amount of RAM your app would otherwise have available. This confuses me -- does not all app memory get released when the app is closed by the user? And only one app is open at a time on iPhone? ...

Is this a memory leak ( a program in python with sqlalchemy/sqlite)

I have the following code runs over a large set of data (2M). It eats up all my 4G mem before finishing. for sample in session.query(CodeSample).yield_per(100): for proj in projects: if sample.filename.startswith(proj.abs_source): sample.filename = "some other path" ...

Why am I leaking memory with this python loop?

I am writing a custom file system crawler, which gets passed millions of globs to process through sys.stdin. I'm finding that when running the script, its memory usage increases massively over time and the whole thing crawls practically to a halt. I've written a minimal case below which shows the problem. Am I doing something wrong, or h...

iPhone Simulator leaks vs iPhone Device Leaks??

Is it possible that there will still be leaks when running my app on an iPhone even if the simulator has absolutely none?? ...

Is is possible to have a clean undeploy in Glassfish?

I realized that any application which uses hibernate, fails to undeploy completely in Glassfish 2.1.1. Many classes remain in memory after the undeployment process, you can check it using jmap and jhat. I've done several tests, and figured out that only applications which had hibernate failed to have a clen undeploy process. My Databas...

More Leaking Code help?

-(IBAction)customizeYourGameButtonClicked:(id)sender { [self playHumanHitSound]; self.customizeYourGameViewController = [[CustomizeYourGameViewController alloc] initWithNibName:@"CustomizeYourGameViewController" bundle:nil]; [self.navigationController pushViewController:customizeYourGameViewController animated:YES]; [custo...

iPhone: AVAudioPlayer/NSURL memory management

I posted a much longer question a few minutes ago, and as it usually goes as soon as I posted it I realized what was going on, so I deleted it since most of the post was irrelevant. Then I went back to Google. Turns out I'm having almost the same exact problem as described in this post, unanswered from June. http://www.iphonedevsdk.com/...

Why does my windows console application leak when idling? (And why does the smoking gun point at kernel32.dll??)

Hello everyone. I have a windows multi-threded console application that appears to be leaking approximately 4kb private memory every minute or so. In an effort to localise the leak, I have gradually suspended each thread in the application until the leak stopped, and to my surprise the culprit seems to be a thread named "Win32Thread". ...