ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How To Find Memory Leak in ARX File

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
732 Views, 7 Replies

How To Find Memory Leak in ARX File

Dear Friends

Can Some One Tell How To Find Memory Leak in ARX File.
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

Hello,

Try this:

_CrtDumpMemoryLeaks();

Take a look at VC++ documentation for further information...

Regards,
Fernando.

"Manish Bhatia" wrote in message
news:f0fea75.-1@WebX.maYIadrTaRb...
> Dear Friends
>
> Can Some One Tell How To Find Memory Leak in ARX File.
>
>
>
>
>
Message 3 of 8
Anonymous
in reply to: Anonymous

Again this function is defined only in the debug C-runtime library. A
correctly set up ARX DLL must link with the release C-runtime library where
this function is not available. Am I missing something here?

Joel

"Fernando Malard" wrote in message
news:CF72F037C6E5B94EC66D19038F148B17@in.WebX.maYIadrTaRb...
> Hello,
>
> Try this:
>
> _CrtDumpMemoryLeaks();
>
> Take a look at VC++ documentation for further information...
>
> Regards,
> Fernando.
>
> "Manish Bhatia" wrote in message
> news:f0fea75.-1@WebX.maYIadrTaRb...
> > Dear Friends
> >
> > Can Some One Tell How To Find Memory Leak in ARX File.
> >
> >
> >
> >
> >
>
>
Message 4 of 8
Anonymous
in reply to: Anonymous

If you have a few hundred dollars to blow, then buy BoundsChecker
from Numega. Otherwise, view the debug tab in the IDE after
Autocad quits. Scroll up a ways looking for memory leak messages.
Memory leaks will be reported as the line that allocated the memory.
From there your on your own figuring out why the memory wasn't
deallocated.

Paul Kohut

"Manish Bhatia" wrote in message
news:f0fea75.-1@WebX.maYIadrTaRb...
> Dear Friends
>
> Can Some One Tell How To Find Memory Leak in ARX File.
>
>
>
>
>
Message 5 of 8
Anonymous
in reply to: Anonymous

Correct me if I am wrong but you cannot find memory leaks using MFC's leak
detection since you are linked with the release version of MFC. Maybe I have
been missing something for 2 years now (that's possible!).

Joel

"Paul Kohut" wrote in message
news:5C1DC5575F162F8B800A7EEBB9D1D42A@in.WebX.maYIadrTaRb...
> If you have a few hundred dollars to blow, then buy BoundsChecker
> from Numega. Otherwise, view the debug tab in the IDE after
> Autocad quits. Scroll up a ways looking for memory leak messages.
> Memory leaks will be reported as the line that allocated the memory.
> From there your on your own figuring out why the memory wasn't
> deallocated.
>
> Paul Kohut
>
> "Manish Bhatia" wrote in message
> news:f0fea75.-1@WebX.maYIadrTaRb...
> > Dear Friends
> >
> > Can Some One Tell How To Find Memory Leak in ARX File.
> >
> >
> >
> >
> >
>
>
Message 5 of 8
Anonymous
in reply to: Anonymous

Make sure you have this at the top of your implementation files:

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

Andy





"Paul Kohut" wrote in message
news:5C1DC5575F162F8B800A7EEBB9D1D42A@in.WebX.maYIadrTaRb...
> If you have a few hundred dollars to blow, then buy BoundsChecker
> from Numega. Otherwise, view the debug tab in the IDE after
> Autocad quits. Scroll up a ways looking for memory leak messages.
> Memory leaks will be reported as the line that allocated the memory.
> From there your on your own figuring out why the memory wasn't
> deallocated.
>
> Paul Kohut
>
> "Manish Bhatia" wrote in message
> news:f0fea75.-1@WebX.maYIadrTaRb...
> > Dear Friends
> >
> > Can Some One Tell How To Find Memory Leak in ARX File.
> >
> >
> >
> >
> >
>
>
Message 7 of 8
Anonymous
in reply to: Anonymous

Your right. Had memory fade there for a minute. I've
been using Bounds Checker for a couple years with
good success.

Paul Kohut

"Joel Matthias" wrote in message
news:0D142017C0F7269EBF48F0102B6F1389@in.WebX.maYIadrTaRb...
> Correct me if I am wrong but you cannot find memory leaks using MFC's leak
> detection since you are linked with the release version of MFC. Maybe I
have
> been missing something for 2 years now (that's possible!).
>
> Joel
>
> "Paul Kohut" wrote in message
> news:5C1DC5575F162F8B800A7EEBB9D1D42A@in.WebX.maYIadrTaRb...
> > If you have a few hundred dollars to blow, then buy BoundsChecker
> > from Numega. Otherwise, view the debug tab in the IDE after
> > Autocad quits. Scroll up a ways looking for memory leak messages.
> > Memory leaks will be reported as the line that allocated the memory.
> > From there your on your own figuring out why the memory wasn't
> > deallocated.
> >
> > Paul Kohut
> >
> > "Manish Bhatia" wrote in message
> > news:f0fea75.-1@WebX.maYIadrTaRb...
> > > Dear Friends
> > >
> > > Can Some One Tell How To Find Memory Leak in ARX File.
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Message 8 of 8
kvenics
in reply to: Anonymous

Manish Bhatia,

 

I used Purify but it doesn't support arx files.

 

Were you able to find memory leaks in arx files? Please share your experience. Didn't get much info. on the net.

 

--Thanks,

Pramila

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost