Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblem with dialog box and richedit control Pin
Deepak Samuel27-Oct-03 3:45
Deepak Samuel27-Oct-03 3:45 
GeneralRe: problem with dialog box and richedit control Pin
includeh1027-Oct-03 4:12
includeh1027-Oct-03 4:12 
GeneralRe: problem with dialog box and richedit control Pin
Deepak Samuel27-Oct-03 4:25
Deepak Samuel27-Oct-03 4:25 
GeneralRe: problem with dialog box and richedit control Pin
David Crow27-Oct-03 4:16
David Crow27-Oct-03 4:16 
GeneralRe: problem with dialog box and richedit control Pin
Mumiozol28-Oct-03 0:51
Mumiozol28-Oct-03 0:51 
GeneralFinding memory leaks and time consuming methods Pin
Jerome Conus27-Oct-03 3:31
Jerome Conus27-Oct-03 3:31 
GeneralRe: Finding memory leaks and time consuming methods Pin
Kevin McFarlane27-Oct-03 5:26
Kevin McFarlane27-Oct-03 5:26 
GeneralRe: Finding memory leaks and time consuming methods Pin
Tim Deveaux27-Oct-03 8:07
Tim Deveaux27-Oct-03 8:07 
This code stolen from the docs on _CrtSetDbgFlag in the MSDN could provide a preliminary leak check for _DEBUG builds.

#include <crtdbg.h>

.
.
.
        // run this code as early as possible at app init
	int tmpDbgFlag;

	_CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_FILE );
	_CrtSetReportFile( _CRT_ERROR, _CRTDBG_FILE_STDERR );
	/*
	* Set the debug-heap flag to keep freed blocks in the
	* heap's linked list - This will allow us to catch any
	* inadvertent use of freed memory
	*/
	tmpDbgFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
	tmpDbgFlag |= _CRTDBG_DELAY_FREE_MEM_DF;
	tmpDbgFlag |= _CRTDBG_LEAK_CHECK_DF;
	_CrtSetDbgFlag(tmpDbgFlag);
.
.
.

On app exit, you should see a dump of any leaks detected. Locating their origin is the next step - not always easy. See the msdn under using the debug heap.
QuestionArray/List? Pin
DaFrawg27-Oct-03 2:21
DaFrawg27-Oct-03 2:21 
AnswerRe: Array/List? Pin
David Crow27-Oct-03 2:36
David Crow27-Oct-03 2:36 
GeneralRe: Array/List? Pin
Kevin McFarlane27-Oct-03 4:48
Kevin McFarlane27-Oct-03 4:48 
GeneralRe: Array/List? Pin
David Crow27-Oct-03 5:00
David Crow27-Oct-03 5:00 
AnswerRe: Array/List? Pin
Kevin McFarlane27-Oct-03 5:09
Kevin McFarlane27-Oct-03 5:09 
GeneralYou also need this Pin
Kevin McFarlane27-Oct-03 5:15
Kevin McFarlane27-Oct-03 5:15 
GeneralRe: Array/List? Pin
DaFrawg31-Oct-03 0:38
DaFrawg31-Oct-03 0:38 
GeneralCEdit notification message Pin
YaronNir27-Oct-03 2:10
YaronNir27-Oct-03 2:10 
GeneralRe: CEdit notification message Pin
Steve S27-Oct-03 2:19
Steve S27-Oct-03 2:19 
QuestionMessages missing for slider controls (and also for spinbuttons etc.)? Pin
DaFrawg27-Oct-03 2:09
DaFrawg27-Oct-03 2:09 
AnswerRe: Messages missing for slider controls (and also for spinbuttons etc.)? Pin
Roger Allen27-Oct-03 3:33
Roger Allen27-Oct-03 3:33 
AnswerRe: Messages missing for slider controls (and also for spinbuttons etc.)? Pin
Iain Clarke, Warrior Programmer27-Oct-03 3:48
Iain Clarke, Warrior Programmer27-Oct-03 3:48 
AnswerRe: Messages missing for slider controls (and also for spinbuttons etc.)? Pin
Chris Hills27-Oct-03 4:01
Chris Hills27-Oct-03 4:01 
GeneralRe: Messages missing for slider controls (and also for spinbuttons etc.)? Pin
DaFrawg27-Oct-03 22:37
DaFrawg27-Oct-03 22:37 
GeneralRe: Messages missing for slider controls (and also for spinbuttons etc.)? Pin
Chris Hills29-Oct-03 1:19
Chris Hills29-Oct-03 1:19 
GeneralRe: Messages missing for slider controls (and also for spinbuttons etc.)? Pin
Atlantys30-Oct-03 13:17
Atlantys30-Oct-03 13:17 
Generalmysql with release mode? urgent Pin
murali_utr27-Oct-03 1:33
murali_utr27-Oct-03 1:33 

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.