Memory leak from the third party component

Using Delphi 2005 on Windows XP, how to make sure that all the components (third party) placed on the form are getting freed up when FreeAndNil(Form) is called. Using Memcheck, I am finding that, there are memory leaks for the third party component, after freeing the form. I have the source of the third party components, but it is huge and very complex to debug. Any help?
Thanks!
Dr_Debdarsan_NiyogiAsked:
Who is Participating?
 
MerijnBSr. Software EngineerCommented:
use fastmm (http://sourceforge.net/projects/fastmm/)
It's an alternative Memory manager for Delphi which is also very good at finding memory leaks (including stack trace where you allocated the memory you didn't free)
0
 
MerijnBSr. Software EngineerCommented:
alternatively, the trial version of EurekaLog (www.eurekalog.com) also has quite good memory leak detection.
0
 
Dr_Debdarsan_NiyogiAuthor Commented:
I had used both of them, have the stack trace for memory leak, but it is very difficult to fix the the third party component code!
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
MerijnBSr. Software EngineerCommented:
can you dump the fastmm logging here?
0
 
MerijnBSr. Software EngineerCommented:
or post this 3th party component somewhere
0
 
Dr_Debdarsan_NiyogiAuthor Commented:
could you give me your email? I can send the entire source of the component suit...
0
 
MerijnBSr. Software EngineerCommented:
hmm, I think that is against EE rules, since it would mean that anybody coming to search for this solution later won't find it.

Start with the dump of FastMM, let's see if we can get somewhere from there.
0
 
ziolkoCommented:
what components you use?

ziolko.
0
 
diniludCommented:
How you identify the memory leak is with that component?
0
 
Dr_Debdarsan_NiyogiAuthor Commented:
I am using CDD components - I am trying to send you a skeletal code sample.
0
 
ziolkoCommented:
never heard about CDD,
but if you really want to get rid of mem leaks you have two options
write to vendor of component and tell him what you think about this situation:)
or go thru source code and change it, in this case FastMM is cool because it gives you exact point where wasted memory was allocated

ziolko.
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.