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

Difference between Debug and Release versions?

4 Answers  


What is the use of CCmdTarget ?

4 Answers  


Tell us something about MFC?

7 Answers   Microsoft,


1)does Frame Thickness in MFC?

1 Answers   winfoware,


What is Multithreading

1 Answers   Invensys,


is there any class which is not derived from Cobject

11 Answers   Patni,


what is the difference between compiling and building?

1 Answers  


What is a message map?

1 Answers   Mphasis,


Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


what is message Testing ?

1 Answers   L&T,


Categories