ObjectARX

Reply
*Bhatia, Manish
Message 1 of 8 (350 Views)

How To Find Memory Leak in ARX File

350 Views, 7 Replies
08-04-2002 01:21 PM
Dear Friends

Can Some One Tell How To Find Memory Leak in ARX File.
*Malard, Fernando
Message 2 of 8 (350 Views)

Re: How To Find Memory Leak in ARX File

08-05-2002 01:21 AM in reply to: *Bhatia, Manish
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.
>
>
>
>
>
*Matthias, Joel
Message 3 of 8 (350 Views)

Re:

08-05-2002 04:20 AM in reply to: *Bhatia, Manish
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.
> >
> >
> >
> >
> >
>
>
*Kohut, Paul
Message 4 of 8 (350 Views)

Re: How To Find Memory Leak in ARX File

12-13-2003 08:16 PM in reply to: *Bhatia, Manish
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.
>
>
>
>
>
*Matthias, Joel
Message 5 of 8 (350 Views)

Re:

12-13-2003 08:16 PM in reply to: *Bhatia, Manish
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.
> >
> >
> >
> >
> >
>
>
*Bihan, Andrew le
Message 5 of 8 (350 Views)

Re:

12-13-2003 08:16 PM in reply to: *Bhatia, Manish
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.
> >
> >
> >
> >
> >
>
>
*Kohut, Paul
Message 7 of 8 (350 Views)

Re:

12-13-2003 08:16 PM in reply to: *Bhatia, Manish
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.
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Active Member
kvenics
Posts: 7
Registered: ‎11-27-2012
Message 8 of 8 (277 Views)

Re: Re: Find memory leaks in arx file

01-29-2013 11:20 PM in reply to: *Kohut, Paul

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

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.