Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,934 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,669 people online right now. Registration is fast and FREE... Join Now!




Memory Leak Problem

 
Reply to this topicStart new topic

Memory Leak Problem

CppCoder
21 Jan, 2008 - 04:31 AM
Post #1

New D.I.C Head
*

Joined: 21 Jan, 2008
Posts: 3

I am facing one strange problem.
In our application sometimes when i add a new function, memory exception error dialog pops up. If i merge the same function with the calling function then the error disapperars.
Can anyone help me?
I am using VC++7

User is offlineProfile CardPM
+Quote Post

#include<wmx010>
RE: Memory Leak Problem
21 Jan, 2008 - 04:35 AM
Post #2

D.I.C Head
**

Joined: 19 Jan, 2008
Posts: 75



Thanked: 1 times
My Contributions
Could you post your code like this:
CODE
your code here

User is offlineProfile CardPM
+Quote Post

CppCoder
RE: Memory Leak Problem
21 Jan, 2008 - 04:45 AM
Post #3

New D.I.C Head
*

Joined: 21 Jan, 2008
Posts: 3

QUOTE(#include<wmx010> @ 21 Jan, 2008 - 05:35 AM) *

Could you post your code like this:
CODE
your code here



It's a huge code.
User is offlineProfile CardPM
+Quote Post

#include<wmx010>
RE: Memory Leak Problem
21 Jan, 2008 - 04:54 AM
Post #4

D.I.C Head
**

Joined: 19 Jan, 2008
Posts: 75



Thanked: 1 times
My Contributions
Could you post the part where you think the problem might be.
User is offlineProfile CardPM
+Quote Post

#include<wmx010>
RE: Memory Leak Problem
21 Jan, 2008 - 05:23 AM
Post #5

D.I.C Head
**

Joined: 19 Jan, 2008
Posts: 75



Thanked: 1 times
My Contributions
Well if you can't post the code then you can use a tool that detects memory leaks "ccmalloc" or "LeakTracer"it worked for me several times.

ccmalloc
http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/

or:

Leak Tracer:
http://www.andreasen.org/LeakTracer/

This post has been edited by #include<wmx010>: 21 Jan, 2008 - 05:24 AM
User is offlineProfile CardPM
+Quote Post

CppCoder
RE: Memory Leak Problem
21 Jan, 2008 - 10:50 PM
Post #6

New D.I.C Head
*

Joined: 21 Jan, 2008
Posts: 3

Thanx for the information.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/8/09 03:35PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month