473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Memory leaks from Purifier

Hi,
How do i debug the memory leaks given below which I get using the
Rationals Purifier for a C++ code.

[i] Summary of all memory leaks... {121604 bytes, 7 blocks}
[W] MLK: Memory leak of 65536 bytes from 2 blocks allocated in
BinDataPrep.exe
Distribution of leaked blocks
Allocation location
VirtualAlloc [KERNEL32.dll]
??? [BinDataPrep.exe ip=0x004125e3]
??? [BinDataPrep.exe ip=0x004122b2]
??? [BinDataPrep.exe ip=0x0041177e]
??? [BinDataPrep.exe ip=0x00427059]
[W] MLK: Memory leak of 32768 bytes from 1 block allocated in
BinDataPrep.exe
Distribution of leaked blocks
Allocation location
??? [BinDataPrep.exe ip=0x00427059]
[W] MLK: Memory leak of 16836 bytes from 1 block allocated in
BinDataPrep.exe
[W] MLK: Memory leak of 4096 bytes from 1 block allocated in
BinDataPrep.exe
Jul 22 '05 #1
1 2364
"Ship1" <sh*************@gmail.com> wrote in message news:39**************************@posting.google.c om...
Hi,
How do i debug the memory leaks given below which I get using the
Rationals Purifier for a C++ code.


[ Cut Purify blat showing allocation IP for leaked blocks.]

Cause your build to generate a map. The map can
be used to assign each instruction pointer (aka 'IP')
value to a particular function. With your program
in the debugger, in 'view assembly' mode, go to the
offending function and find out which statement best
corresponds to the exact IP value. Then, somehow,
(preferably with a review of your design approach
and understanding of memory management issues),
decide why each of those allocations results in no
corresponding release of the allocated memory.
You will, in effect, need a free or delete for each
malloc or new executed in your code. This may
mean correction of a destructor or an operator=
implementation.

--
--Larry Brasfield
email: do***********************@hotmail.com
Above views may belong only to me.
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Maurice | last post by:
Hi there, I'm experiencing big memory problems on my webserver. First on an old RedHat 7.2 system, now on an other fresh installed Suse 8.2 system: Linux version 2.4.20-4GB...
0
by: Steve Binney | last post by:
My code makes synchronous HttpWebRequest and HttpRebResponse calls. In VS 2003, I am getting memory leaks and event handle leaks. I am closing all streams and using "using"statements. I have...
2
by: Generic Usenet Account | last post by:
I have been using STL for a long time now, without any problems. Recently we generated a purification report on our software using Rational Purify, and we found some memory leaks. My colleague...
8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
4
by: ali.jan | last post by:
Hi, It is trivial to load an assembly in a new Application Domain. Is there any way of loading an assembly in a new process? I tried using the Process class like this: Process p = new...
23
by: James | last post by:
The following code will create memory leaks!!! using System; using System.Diagnostics; using System.Data; using System.Data.SqlClient; namespace MemoryLeak
3
by: Jim Land | last post by:
Jack Slocum claims here http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript- memory-leaks/ that "almost every site you visit that uses JavaScript is leaking memory". ...
3
by: vrsathyan | last post by:
Hi.., While executing the following code in purifier.., std::vector<int> vecX; vecX.clear(); int iCount = 0; { int iVal;
16
by: graham.keellings | last post by:
hi, I'm looking for an open source memory pool. It's for use on an embedded system, if that makes any difference. Something with garbage collection/defragmentation would be nice. It should have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.