memory-leaks

how to free memory from a set

hey, i got a set that includes pointers to an allocated memory, i am using the clear method forexample : setname.clear(); and the set itself is getting cleared and his pointers but still i got memoryleaks the allocated memory stays uncleared for some reason. thanks in advance for your answer. ...

memoryleak detection

hey i am trying to detect leaks in visual studio using : #define _CRTDBG_MAPALLOC #include <stdlib.h> #include <crtdbg.h> and in the end of the main i am typing : _CrtDumpMemoryLeaks(); when i do all of this i am getting the the memoryleaks (what inside them) but not the places that the allocates were made , can u please help me w...

How can I prevent memory leak in csv file import / isbn lookup script

My website allows users to upload a csv file with a list of books. The script then reads this file and checks the isbn number against Amazon, using the PEAR Services_Amazon class, returning enhanced book data. However, whenever I run the script on a list of books the amount of memory consumed steadily increases until I get a fatal error....

How to remove DOM elements without memory leaks?

My Javascript build a list of "LI" elements. When I update the list memory usage grows and never go down. I am wondering what should I do to remove DOM nodes without memory leak. I tested in sIEve and it shows that browser keeps all elements which I thought was deleted by $.remove() or $.empty jQuery commands. Help!!! ...

NSMutbleArray - add/remove objects with properties - leaks

Hi guys, i have a leak issue in my app. I'm trying to add and remove objects to a NSMutableArray. Here is the class Demande : @interface Demande : NSObject { //attibuts de la classe demande NSString *demId; NSString *demStatut; NSString *demTitle; NSString *demCreated; NSString *demIdCopro; NSString *demIdImmeuble; NSString *demIdLo...

Exceptions and memory leaks

This is a theoretical question more than anything else. In the case of C# and .NET, if an .aspx or .ascx script dies due to an unhandled exception, would you normally expect its memory to be released, or is that not a sure thing? In other words, can an unhandled exception itself leak memory? ...

I am getting the leak in the follwing code ? memory management

Hai Guys, I am getting the leaks as 100%. I don't know how to release the object after it returns Could you explain the procedure how to release the allocated Titles object. -(Titles *)listTiles { Tiles* tile = [[Tiles alloc] init]; tile.googleTile_X = (int)tileX; tile.googleTile_Y = (int) pow(2, aZoom) - 1- tileY ; tile.zoomLevel ...

How to correctly unbind dom-elements in jQuery widgets?

hi i have some troubles with memoryleaks in javascript. i'm using the Leak Memory 0.4.5 extension for firefox (https://addons.mozilla.org/de/firefox/addon/2490/) which shows me those javascript-objects which still remains in the memory. now i'm not sure how to correctly unbind dom-object from events etc. for instance: i have a jquery-wid...

Is there something similiar to GUnload() in google maps v3?

In google maps v2 we had onunload="GUnload()". now in the newer version v3 i couldn't find this funtion in the api. i'm asking because i have some troubles with memoryleaks in combination with google maps v3. ...

Leaks on iPhone, but not in Simulator, involving external libraries?

I need help with pinpointing source of leaks that all originate from external libraries, so I can't figure out if it's anything I'm doing. Strangely, on the simulator there are no leaks! Some of the Leaked Objects / Responsible libraries / ResponsibleFrames that show up are these: UIImageView iAd -[ADBrandingFrame ...

External framework (iMedia) + Garbage collector leaks memory?

In case the answer is obvious, please don't be hard on me, i'm still new to Cocoa. I recompiled the iMedia framework to make use of garbage collection, which it officially supports, according to their issue tracker (tracker entry). iMedia parses iTunes' XML library file and loads everything into an NSDictionary (i call it "monster dicti...

Why does this sometimes crash

Inside the function - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { I create an NSString, then give cell.textLabel.text the value of this string. Then I release it. The program will crash on getting one of the fields at the end. If I don't release the NSString, then the progr...

memory leak in uimapkit polyline

Hi, I'm practicing drawing polyline on the Map. I've adopted Sample code from download here. Here is the part that I got memory warning when I do build->Analysis MKMapRect routeRect = MKMapRectMake(southWestPoint.x, southWestPoint.y, northEastPoint.x - southWestPoint.x, northEastPoint.y - southWestPoint.y); // clear the memory allocat...

debug wpf by using sos.dll issue

I am using sos.dll to find memory leak in wpf . And I found a wpf object was not released, then I tried to find out why it is not released by using !gcroot it gave me a warming that: Please note that 6c369950 is not a valid object. snippet of the debugging info !dumpheap -type WPFUILib.MenuWindow Statistics: MT Count To...

How can I completely delete a package in Perl?

How do you completely delete a package in Perl? This means not only the package variables, but also any magic tables that Perl updates to handle inheritance changes and other things. This simple test: use warnings; use strict; use Test::LeakTrace; use Symbol 'delete_package'; leaktrace { package test; our $x = 1; package ma...

Very simple Ruby GServer leaking memory

I've got the following Ruby script: class Server < GServer def initialize super(10001) end def serve(io) while true io.puts `ps -o rss= -p #{$$}`.to_i end end end server = Server.new server.start while true sleep 10 end When I open a connection to the server, it shows increasing memory usage over ...

iphone/ipad memory leaks instrument tool

Hello all. In order to try the memory leaks instrument tool, I create a view-based ipad application. It is very simple. I create a default view-based application. In the ViewController's loadView, I say // Implement loadView to create a view hierarchy programmatically, without using a nib. - (void)loadView { [super loadView]; ...

Can I test if another reference exists to an object in java?

Is it possible to test for the existence of other references to an object in java? Even if the operation is inefficient, I would like to assert while debugging that a given object will be garbage collected once a given reference falls out of scope. Is this possible? Thanks ...

Memory alloc issues, crash on device iOS SDK 4.1(Thread 0 crash)

I have two problems 1) My App works fine on the device the first few times its run. Then it crashes after the First screen pops up(Tab BAr). If i connect the device to my MAC and then run the device app it works(not debug mode). I Checked the crash Logs, it crashed cos of "EXC_BAD_ACCESS (SIGSEGV)" and Thread0 crashed.The error was N...

Memory leak problem with DBExpress

Hi, I've a weird problem with my application, its memory usage goes up a few hundred megabytes at once every now and then and eventually the application freezes. The application is written with Delphi, it uses database, COM (for OPC) and TCP/IP. With FastMM I've got following the screen shot of memory usage. I'm not completely sure ho...