Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Assertion fail Pin
Nelek17-May-07 20:20
protectorNelek17-May-07 20:20 
Questionhow to resolve this issue? Pin
gentleguy17-May-07 1:14
gentleguy17-May-07 1:14 
QuestionRe: how to resolve this issue? Pin
Mark Salsbery17-May-07 5:32
Mark Salsbery17-May-07 5:32 
QuestionMemory Leaks with Modal Dialog Boxes Pin
jerrylarsen17-May-07 0:37
jerrylarsen17-May-07 0:37 
AnswerRe: Memory Leaks with Modal Dialog Boxes Pin
toxcct17-May-07 0:49
toxcct17-May-07 0:49 
AnswerRe: Memory Leaks with Modal Dialog Boxes Pin
Hamid_RT17-May-07 1:32
Hamid_RT17-May-07 1:32 
AnswerRe: Memory Leaks with Modal Dialog Boxes Pin
Maximilien17-May-07 1:37
Maximilien17-May-07 1:37 
AnswerRe: Memory Leaks with Modal Dialog Boxes Pin
jerrylarsen17-May-07 3:15
jerrylarsen17-May-07 3:15 
Unsure | :~ There is no special initialisation code, this test app was built using the standard dialog application wizard and just using 2 default dialogs with just the parent having the added button to call the child dialog. I have tested the app with Visual Leak Detector and this does not report a leak. however when monitoring the programme size with performance monitor or Task Manager you can see the programme grow.

I found a bug listed by MS http://support.microsoft.com/kb/309121 ?
which suggests the following fix. This seems to fix the problem in my test app, the size grows once(?) but then stabilises.

void CParentDlg::OnButton1()
{
{
CDialog dlg( IDD_CHILD, this);
dlg.DoModal();
}
AfxGetApp()->OnIdle(1);
}

Unfortunately when tried in my real application I keep getting an unhandled exception Access violation in MFCO42d.DLL in OCCSITE.CPP in the function below.

DWORD COleControlSite::GetDefBtnCode()
{
if (m_dwMiscStatus & OLEMISC_ACTSLIKEBUTTON)
return (m_dwStyle & BS_DEFPUSHBUTTON) ?
DLGC_DEFPUSHBUTTON :
DLGC_UNDEFPUSHBUTTON;
else
return 0;
}

JerryL
AnswerRe: Memory Leaks with Modal Dialog Boxes Pin
krmed17-May-07 5:21
krmed17-May-07 5:21 
QuestionHow To Paste Clipboard data in TextBox In Other Dialog Pin
Zhen-Xlogic17-May-07 0:24
Zhen-Xlogic17-May-07 0:24 
AnswerRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hans Dietrich17-May-07 0:35
mentorHans Dietrich17-May-07 0:35 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Zhen-Xlogic17-May-07 0:54
Zhen-Xlogic17-May-07 0:54 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hamid_RT17-May-07 1:31
Hamid_RT17-May-07 1:31 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Zhen-Xlogic17-May-07 1:36
Zhen-Xlogic17-May-07 1:36 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hamid_RT17-May-07 1:45
Hamid_RT17-May-07 1:45 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hans Dietrich17-May-07 1:32
mentorHans Dietrich17-May-07 1:32 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Zhen-Xlogic17-May-07 10:15
Zhen-Xlogic17-May-07 10:15 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hans Dietrich17-May-07 21:35
mentorHans Dietrich17-May-07 21:35 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Zhen-Xlogic17-May-07 23:14
Zhen-Xlogic17-May-07 23:14 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hans Dietrich18-May-07 3:02
mentorHans Dietrich18-May-07 3:02 
Questioncompiler error with << operator overloading [modified] Pin
Dj_Lordas17-May-07 0:16
Dj_Lordas17-May-07 0:16 
AnswerRe: compiler error with << operator overloading Pin
Hans Dietrich17-May-07 0:37
mentorHans Dietrich17-May-07 0:37 
GeneralRe: compiler error with << operator overloading Pin
Dj_Lordas17-May-07 2:29
Dj_Lordas17-May-07 2:29 
GeneralRe: compiler error with << operator overloading Pin
David Crow17-May-07 2:44
David Crow17-May-07 2:44 
GeneralRe: compiler error with << operator overloading Pin
Dj_Lordas17-May-07 3:15
Dj_Lordas17-May-07 3:15 

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.