How we can findout Memoryleaks, In what way it can be
avoided

Answers were Sorted based on User's Feedback



How we can findout Memoryleaks, In what way it can be avoided..

Answer / guest

Use CMemoryState class put checkpoints and differences, and
investigate

Is This Answer Correct ?    11 Yes 1 No

How we can findout Memoryleaks, In what way it can be avoided..

Answer / chandrasekharreddy s

To find out the memory leaks there are several ways
1. Use Permon utility provided by Microsoft
2. Collect the memory leak dump using Debug Diag and
investigate.

Is This Answer Correct ?    5 Yes 1 No

How we can findout Memoryleaks, In what way it can be avoided..

Answer / bhavesh akoliya

By overloading new , delete , malloc , calloc and realloc
we can find out the Memoryleaks.

Is This Answer Correct ?    2 Yes 0 No

How we can findout Memoryleaks, In what way it can be avoided..

Answer / kushagra

The appropiate way to chec leaks in memory is to perform
utilty and collect memory leaks dump using Debug Diag and
Use CMemoryState class put checkpoints and differences, and
investigate.Rational products are available on Liscence so
an be used if agreed by your employer.

Is This Answer Correct ?    2 Yes 1 No

How we can findout Memoryleaks, In what way it can be avoided..

Answer / jecintho sirumalar

to detect the memory leaks in the vc++ code certain tools
available like rational purify plus tool.By intergrating
this tool with your source code the leakage report would be
identified. It will also be very easy to identify the
leaks.

Is This Answer Correct ?    1 Yes 2 No

How we can findout Memoryleaks, In what way it can be avoided..

Answer / bala

I have used LeakDiag to identify the memory leak.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More MFC Interview Questions

How do you change the properties for a tree view control that is part of the CTreeView class?

1 Answers  


What is the difference between Struts and JSF? Pls list some most suitable differences.

0 Answers  


What is the difference between the SDI and MDI

3 Answers   Invensys,


What is the difference between ASSERT and VERIFY?

2 Answers  


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,






how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


List out the basic features of MFC.

4 Answers   Mphasis,


What is the difference between Extension DLL and Regular DLL?

6 Answers   GE,


1) create ToolTip in MFC?

2 Answers   HCL,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


Categories