Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ShellExecute Question Pin
otrcomm18-Jul-04 8:32
otrcomm18-Jul-04 8:32 
GeneralSlider Pin
smack_2k217-Jul-04 21:34
smack_2k217-Jul-04 21:34 
Generalhooking text from another app Pin
swiftrhett17-Jul-04 20:54
swiftrhett17-Jul-04 20:54 
GeneralRe: hooking text from another app Pin
Alexander Wiseman18-Jul-04 3:26
Alexander Wiseman18-Jul-04 3:26 
GeneralRe: hooking text from another app Pin
swiftrhett18-Jul-04 22:20
swiftrhett18-Jul-04 22:20 
GeneralRe: hooking text from another app Pin
Alexander Wiseman19-Jul-04 16:21
Alexander Wiseman19-Jul-04 16:21 
GeneralWM_GETTEXT will not work across process boundaries Pin
bikram singh18-Jul-04 3:42
bikram singh18-Jul-04 3:42 
GeneralDetecting Win32 memory leaks in VS6 IDE Pin
Hesham Amin17-Jul-04 19:47
Hesham Amin17-Jul-04 19:47 
Hi I made a sample Win32 Console program to know if the VC++ debugger will detect memory leaks in Win32 apps:

Code:
#include "stdafx.h"

int main(int argc, char* argv[])
{
	printf("Hello World!\n");
	char* ch=new char[100];
	return 0;
}
this shows a clear 100 bytes memory leak
After the program ends .. the debugger did not notify me about any memory leaks

But when making a Win32 Console program with MFC Support and try the same sample I get this :

Detected memory leaks!
Dumping objects ->
H:\Try\memLeakMFC\memLeakMFC.cpp(39) : {56} normal block at 0x002F2AA0, 100 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.

How can I make the debugger detect Win32 apps memory leaks ?
Is there any other way to do it ?
GeneralRe: Detecting Win32 memory leaks in VS6 IDE Pin
Johan Rosengren17-Jul-04 20:35
Johan Rosengren17-Jul-04 20:35 
GeneralRe: Detecting Win32 memory leaks in VS6 IDE Pin
Michael Dunn18-Jul-04 5:14
sitebuilderMichael Dunn18-Jul-04 5:14 
GeneralStoring List Box items... Pin
Member 123981317-Jul-04 19:44
Member 123981317-Jul-04 19:44 
GeneralRe: Storing List Box items... Pin
Yulianto.17-Jul-04 21:24
Yulianto.17-Jul-04 21:24 
GeneralYahoo Messenger uses XP Theme on 98! Pin
pebrian2717-Jul-04 18:57
pebrian2717-Jul-04 18:57 
GeneralYahoo Messenger uses XP Theme on 98! Pin
pebrian2717-Jul-04 18:57
pebrian2717-Jul-04 18:57 
QuestionGet Icon Handle from Memory block? Pin
Shuang. Wu17-Jul-04 17:08
Shuang. Wu17-Jul-04 17:08 
AnswerRe: Get Icon Handle from Memory block? Pin
Michael Dunn17-Jul-04 18:40
sitebuilderMichael Dunn17-Jul-04 18:40 
GeneralRe: Get Icon Handle from Memory block? Pin
Shuang. Wu17-Jul-04 20:27
Shuang. Wu17-Jul-04 20:27 
Generalafxloadlibrary Pin
the_augy17-Jul-04 14:13
the_augy17-Jul-04 14:13 
GeneralRe: afxloadlibrary Pin
PJ Arends17-Jul-04 15:26
professionalPJ Arends17-Jul-04 15:26 
GeneralRe: afxloadlibrary Pin
the_augy18-Jul-04 10:21
the_augy18-Jul-04 10:21 
GeneralRe: afxloadlibrary Pin
the_augy18-Jul-04 10:23
the_augy18-Jul-04 10:23 
GeneralRe: afxloadlibrary Pin
PJ Arends18-Jul-04 10:29
professionalPJ Arends18-Jul-04 10:29 
GeneralRe: afxloadlibrary Pin
Anonymous18-Jul-04 12:58
Anonymous18-Jul-04 12:58 
GeneralRe: afxloadlibrary Pin
PJ Arends19-Jul-04 0:38
professionalPJ Arends19-Jul-04 0:38 
Generalplane seats Pin
rex4417-Jul-04 13:40
rex4417-Jul-04 13:40 

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.