Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Bit concatenation in C++ Pin
Freak306-Jun-13 23:17
Freak306-Jun-13 23:17 
GeneralRe: Bit concatenation in C++ Pin
Manoj73906-Jun-13 23:22
Manoj73906-Jun-13 23:22 
GeneralRe: Bit concatenation in C++ Pin
Chris Losinger7-Jun-13 1:44
professionalChris Losinger7-Jun-13 1:44 
AnswerRe: Bit concatenation in C++ Pin
SoMad7-Jun-13 0:00
professionalSoMad7-Jun-13 0:00 
AnswerRe: Bit concatenation in C++ Pin
Richard MacCutchan7-Jun-13 1:07
mveRichard MacCutchan7-Jun-13 1:07 
Questionreading error Pin
mrby1236-Jun-13 12:26
mrby1236-Jun-13 12:26 
AnswerRe: reading error Pin
«_Superman_»6-Jun-13 18:25
professional«_Superman_»6-Jun-13 18:25 
QuestionDetecting memory leaks in BOOST test cases. Pin
Shailesh H5-Jun-13 0:14
Shailesh H5-Jun-13 0:14 
Hi All,
I have a BOOST test case as below
BOOST_AUTO_TEST_CASE( BoostUnitTestSample )
{

// seven ways to detect and report the same error:
BOOST_CHECK( add( 2,2 ) == 4 ); // #1 continues on error

BOOST_REQUIRE( add( 2,2 ) == 4 ); // #2 throws on error

somefunction_whichleaksmemory();----------->memory leak function.

if( add( 2,2 ) != 4 )
BOOST_ERROR( "Ouch..." ); // #3 continues on error

}



I want to programmatically detect the memory leak in function somefunction_whichleaks() and get information like line number and filename where the leaked occurred.
And most importantly I should know in which test case this leaked occured.May be I would like to have a dump of all this information in some file.
Does anybody knows a solution to this?
AnswerRe: Detecting memory leaks in BOOST test cases. Pin
JackDingler6-Jun-13 10:23
JackDingler6-Jun-13 10:23 
QuestionC Basic Pin
john56324-Jun-13 23:52
john56324-Jun-13 23:52 
AnswerRe: C Basic Pin
SandipG 5-Jun-13 0:33
SandipG 5-Jun-13 0:33 
AnswerRe: C Basic Pin
_AnsHUMAN_ 5-Jun-13 0:35
_AnsHUMAN_ 5-Jun-13 0:35 
QuestionRe: C Basic Pin
David Crow5-Jun-13 4:01
David Crow5-Jun-13 4:01 
AnswerRe: C Basic Pin
David Crow5-Jun-13 5:48
David Crow5-Jun-13 5:48 
AnswerRe: C Basic Pin
Erudite_Eric5-Jun-13 8:15
Erudite_Eric5-Jun-13 8:15 
GeneralRe: C Basic Pin
CPallini5-Jun-13 9:46
mveCPallini5-Jun-13 9:46 
GeneralRe: C Basic Pin
Richard MacCutchan5-Jun-13 21:22
mveRichard MacCutchan5-Jun-13 21:22 
AnswerRe: C Basic Pin
jschell5-Jun-13 9:25
jschell5-Jun-13 9:25 
AnswerRe: C Basic Pin
hans.sch11-Jul-13 7:31
hans.sch11-Jul-13 7:31 
QuestionHow can i get date valu from ADSI with c++ code Pin
venkatesh528674-Jun-13 21:42
venkatesh528674-Jun-13 21:42 
AnswerRe: How can i get date valu from ADSI with c++ code Pin
Richard MacCutchan4-Jun-13 21:58
mveRichard MacCutchan4-Jun-13 21:58 
GeneralRe: How can i get date valu from ADSI with c++ code Pin
venkatesh528674-Jun-13 22:04
venkatesh528674-Jun-13 22:04 
GeneralRe: How can i get date valu from ADSI with c++ code Pin
Richard MacCutchan4-Jun-13 23:30
mveRichard MacCutchan4-Jun-13 23:30 
QuestionHow to Get USB attached Devices ' name using setupDi calls ? Pin
002comp4-Jun-13 19:01
002comp4-Jun-13 19:01 
AnswerRe: How to Get USB attached Devices ' name using setupDi calls ? Pin
Jochen Arndt4-Jun-13 21:27
professionalJochen Arndt4-Jun-13 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.