Click here to Skip to main content
15,917,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Freeze entire screen Pin
Bram van Kampen15-Aug-08 14:21
Bram van Kampen15-Aug-08 14:21 
QuestionFile Reading Issue Pin
VC_RYK11-Aug-08 22:10
VC_RYK11-Aug-08 22:10 
AnswerRe: File Reading Issue Pin
Cedric Moonen11-Aug-08 22:20
Cedric Moonen11-Aug-08 22:20 
AnswerRe: File Reading Issue Pin
shaibee11-Aug-08 22:33
shaibee11-Aug-08 22:33 
GeneralRe: File Reading Issue Pin
David Crow12-Aug-08 3:38
David Crow12-Aug-08 3:38 
AnswerRe: File Reading Issue Pin
kbshibukumar11-Aug-08 23:49
kbshibukumar11-Aug-08 23:49 
AnswerRe: File Reading Issue Pin
Bram van Kampen12-Aug-08 9:26
Bram van Kampen12-Aug-08 9:26 
QuestionCDialog Destroy memory leaks! please help.. Pin
gamja11-Aug-08 21:39
gamja11-Aug-08 21:39 
hi, all

code is,

----------------------------
CDialog * dlg;

while(TRUE)
{
dlg = new MyDialog;
dlg->Create(IDD_DIALOG, this);
Sleep(500);

dlg->DestroyWindow();
Sleep(500);
}
----------------------------

MyDialog is CDialog subcalssing,

MyDialog virtual method override PostNcDestroy()

void MyDialog::PostNcDestroy()
{
delete this;
CDialog::PostNcDestroy();
}


----------------

this code do not always memory leak.

but some time increase using memory. for 4kb... and not decrease using memory

What is problem??
AnswerRe: CDialog Destroy memory leaks! please help.. Pin
toxcct11-Aug-08 21:47
toxcct11-Aug-08 21:47 
AnswerRe: CDialog Destroy memory leaks! please help.. Pin
sashoalm11-Aug-08 21:47
sashoalm11-Aug-08 21:47 
AnswerRe: CDialog Destroy memory leaks! please help.. Pin
krmed12-Aug-08 2:12
krmed12-Aug-08 2:12 
QuestionRe: CDialog Destroy memory leaks! please help.. Pin
David Crow12-Aug-08 3:30
David Crow12-Aug-08 3:30 
AnswerRe: thx all, but still problem.. Pin
gamja12-Aug-08 4:04
gamja12-Aug-08 4:04 
QuestionCreating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 21:22
Sangeetha_J11-Aug-08 21:22 
AnswerRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 21:32
toxcct11-Aug-08 21:32 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 21:50
Sangeetha_J11-Aug-08 21:50 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 21:52
toxcct11-Aug-08 21:52 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 22:06
Sangeetha_J11-Aug-08 22:06 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 22:10
toxcct11-Aug-08 22:10 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 22:19
Sangeetha_J11-Aug-08 22:19 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 22:22
toxcct11-Aug-08 22:22 
AnswerRe: Creating a dll using Visual C++ 2005 Pin
noxmortis12-Aug-08 4:59
noxmortis12-Aug-08 4:59 
QuestionHello how to redirect the function's return address to your own function address? Pin
nah133711-Aug-08 21:15
nah133711-Aug-08 21:15 
AnswerRe: Hello how to redirect the function's return address to your own function address? Pin
toxcct11-Aug-08 21:31
toxcct11-Aug-08 21:31 
GeneralRe: Hello how to redirect the function's return address to your own function address? Pin
nah133711-Aug-08 23:52
nah133711-Aug-08 23:52 

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.