memory-leaks

Too much physical memory for an asp.net app?

My huge 32-bit web services LLBLGen-based data access application is running alone on a dedicated 64-bit machine. Its physical memory consumption steadily grows up to approximately 2GB when the process releases almost all of the allocated space (up to 1,5GB) and continues to grow from that point again. There is no observable increase in ...

Does Visual Studio have anything like Borland's CodeGuard?

Is there anything in Visual Studio that will report memory leaks like Codeguard? eg: Error 00001. 0x300010 (Thread 0x0FA4): Resource leak: The object (0xC65D84) was never deleted The object (0x00C65D84) [size: 4 bytes] was created with new | element2.cpp line 3: | #include "element2.h" | |>CS225::Element2::Element2(int _val) : p_val(...

iPhone - Memory Leak - NSData dataWithContentsOfUrl & UIWebView

Please help! Have been staring at this for 12 hours; and have looked online and can't find solution. In my application, I use 2 UIView controls in separate pages/controllers: UIImageView (retrieve data via NSData dataWithContentsOfUrl) UIWebView Just to isolate my code, and make it easier to explain, I created a new view based proje...

Does ADO.NET + massive INSERTs + Excel + C# = "A bad time"?

Basically I need to insert a bunch of data to an Excel file. Creating an OleDB connection appears to be the fastest way but I've seen to have run into memory issues. The memory used by the process seems to keep growing as I execute INSERT queries. I've narrowed them down to only happen when I output to the Excel file (the memory holds...

Memory leak detection under Windows for GNU C/C++

What memory leak detection tools are available for use with open source C/C++ on Windows? ...

C MySQL client library behaviour

I have a client application that connects to the MySQL database 4 server using stock libraries on SuSE SLES 9. However, at times when processing a particular reset set from the server, iterating throw the results does not allow me to process all the results that is in the database. This issue happens sometimes, mostly when servers hav...

Causes for web service memory leak

We have a web service that uses up more and more private bytes until that application stops responding. The managed heap (mostly Gen2) will show some 200-250 MB, while private bytes shows over 1GB. What are possible causes of a memory leak outside of the managed heap? I've already checked for the following: Prolific dynamic assembli...

Static EventHandler Memory Leaks in the Framework

I'm in the process of troubleshooting some memory problems we're having in our .NET WinForms application. I'm using SciTech's .NET Memory Profiler as well as dotTrace and they all seem to be indicting root allocations by static event handlers in the .NET Framework controls. From google'ing around, I've found reports of this here and he...

Profiler and Memory Analysis Tools for Delphi

I recently upgraded from Delphi 4 to Delphi 2009. With Delphi 4 I had been using GpProfile by Primoz Gabrijelcic as a profiler and Memory Sleuth by Turbo Power for memory analysis and leak debugging. Both worked well for me. But I now need new tools that will work with Delphi 2009. The leader in Profiling/Analysis tools for Delphi by a...

Are there any tools for finding memory leaks in my Perl program?

I am using ActiveState Perl 5.6 on a Windows 2003 Server, and am having some memory leak issues. Are there any good tools (or even bad tools which would give a clue) which I would be able to use to help find them. ...

The Best Memory Leak Definition

I feel like developers talk about memory leaks but when you ask them what that means many have no idea. To prevent these situations, let's decide on one. Please no Wikipedia definitions... What is your best definition of a memory leak and what is the best way to prevent them? ...

Memory leak

Hi All, I read somewhere that there are special cases when memory leaks are needed and actually a good thing in some rare circumstances. But i can't remember what was it exactly! Does anyone know or remember such an argument? Thanks, Adi ...

Java still uses system memory after deallocation of objects and garbage collection.

I am running JVM 1.5.0 (Mac OS X Default), and I am monitoring my Java program in the Activity Monitor. I have the following: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Date; public class MemoryTest { public static void memoryUsage() { Sys...

Javascript memory leak cleanup in window.unload

Javascript client side application. Trying to eliminate memory leaks leads to ugly (to say the least) code. I am trying to clean up in window.unload instead on messing up all the code trying to avoid them. We use mostly element.onevent=function(){..}; pattern, that results in closure (mostly wanted) and memory leak. We do not use jav...

Accessing Windows (XP) performance counters preferably in VBScript

I'm testing a web application for browser memory leaks using Quick Test Professional (QTP) 9.5 and Internet Explorer 6. PerfMon works for monitoring the memory usage over time, but its data has to be synchronized to the testing results to find out which steps trigger the browser memory leak. Since QTP's scripting language is VBScript,...

How do you put a breakpoint on a memory location in dbx?

A co-worker has a C program that fails in a predictable manner because of some corrupted memory. He'd like to use dbx to monitor the memory location once it's allocated in order to pinpoint the code that causes the corruption. Is this possible? If so what is the syntax to produce a breakpoint at the moment of corruption? If not, what...

Finding the type of an unknown object in C++

There are many ways to check programs for memory leaks. You end up with that list of pointers to leaked memory blocks, but is there a good way to find out more information for each block? For example: if I know that the object was a string, the actual string value could make finding the leak a lot easier. Is there a backdoor into RTTI t...

I think STL is causing my application triple its memory usage.

I am inputting a 200mb file in my application and due to a very strange reason the memory usage of my application is more than 600mb. I have tried vector and deque, as well as std::string and char * with no avail. I need the memory usage of my application to be almost the same as the file I am reading, any suggestions would be extremely ...

Memory leaks in newly created Cocoa app when using Garbage Collection?

I decided to use the GC for memory management for my latest Cocoa project, and I discovered something interesting--if I create a brand new Cocoa app project in Xcode, turn GC to supported or required (I tried both), build, and run it it leaks, it shows memory leaks! Mostly large numbers of tiny leaks of objects of type NSCFData, General...

Deallocation doesn't free mem. in Windows/C++ Application

Hi, My Windows/C++ application allocates ~1Gb of data in memory with the new operator and processes this data. The data is deleted after processing. I noticed that if I run the processing again without exiting the application, the second call to "new" operator to allocate ~1gb of data fails. I would expect Windows to deliver back the ...