Click here to Skip to main content
16,007,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalremove & add a security group Pin
Member 13661827-Jan-03 5:23
Member 13661827-Jan-03 5:23 
GeneralOnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 4:35
Haakon S.27-Jan-03 4:35 
GeneralRe: OnInitialUpdate and SDI Pin
HENDRIK R27-Jan-03 4:39
HENDRIK R27-Jan-03 4:39 
GeneralRe: OnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 4:54
Haakon S.27-Jan-03 4:54 
GeneralRe: OnInitialUpdate and SDI Pin
HENDRIK R27-Jan-03 5:00
HENDRIK R27-Jan-03 5:00 
GeneralRe: OnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 6:06
Haakon S.27-Jan-03 6:06 
GeneralRe: OnInitialUpdate and SDI Pin
PJ Arends27-Jan-03 6:57
professionalPJ Arends27-Jan-03 6:57 
Generalcrash on exit in release version with PostMessage!!!!! Help!!! Pin
ns27-Jan-03 4:33
ns27-Jan-03 4:33 
In my MFC MDI app I spawn CDIAlog derived windows from the View class. In the release version, if I close the CDialog, and then exit the whole app, it crashes. Doesnt crash if you exit while the CDialog is still up. ALso doesnt crash if we comment out the PostMessage()and then close the CDialog and exit!!!!Heres the OnClose for the CDialog:

void CImageDisplay::OnClose(void) 
{
	m_pParentWnd->PostMessage(UDM_UPDATEDISPLAY,m_imageDisplayVectorIndex);
	

	CDialog::OnClose();
}


For the handler that runs when the msg is received by the vIew
LRESULT CSVBoxView::OnUDMUpdateDisplay(UINT index)
{
	return 0;
}


SendMessage causes really strange behavior in the whole program, and its not really what I want to do. SO what is so peculiar about the postmessage? It does get sent because you step into the handler when debugging...
Please help!


Appreciate your help,
ns
GeneralRe: crash on exit in release version with PostMessage!!!!! Help!!! Pin
Michael Dunn27-Jan-03 5:19
sitebuilderMichael Dunn27-Jan-03 5:19 
GeneralGosh!!!! MAny many mnay thanks!!!! Pin
ns27-Jan-03 5:25
ns27-Jan-03 5:25 
GeneralRe: Beat me to it Pin
Bill Gates Antimatter Particle27-Jan-03 7:34
Bill Gates Antimatter Particle27-Jan-03 7:34 
GeneralFind active Child Frame in MDI app Pin
Aaron Schaefer27-Jan-03 4:30
Aaron Schaefer27-Jan-03 4:30 
GeneralRe: Find active Child Frame in MDI app Pin
HENDRIK R27-Jan-03 4:41
HENDRIK R27-Jan-03 4:41 
GeneralTool Bars Pin
will138327-Jan-03 4:27
will138327-Jan-03 4:27 
GeneralRe: Tool Bars Pin
RobJones27-Jan-03 7:17
RobJones27-Jan-03 7:17 
GeneralRe: Tool Bars Pin
will138327-Jan-03 8:59
will138327-Jan-03 8:59 
GeneralRe: Tool Bars Pin
RobJones27-Jan-03 9:12
RobJones27-Jan-03 9:12 
GeneralRe: Tool Bars Pin
PJ Arends27-Jan-03 11:51
professionalPJ Arends27-Jan-03 11:51 
GeneralColouring one row of CListView Class:) Pin
omer ejaz27-Jan-03 4:10
sussomer ejaz27-Jan-03 4:10 
GeneralRe: Colouring one row of CListView Class:) Pin
HENDRIK R27-Jan-03 4:44
HENDRIK R27-Jan-03 4:44 
GeneralRe: Colouring one row of CListView Class:) Pin
Michael Dunn27-Jan-03 5:21
sitebuilderMichael Dunn27-Jan-03 5:21 
GeneralRe: NM_CUSTOMDRAW Pin
Bill Gates Antimatter Particle27-Jan-03 8:02
Bill Gates Antimatter Particle27-Jan-03 8:02 
GeneralRe: NM_CUSTOMDRAW Pin
Michael Dunn29-Jan-03 19:43
sitebuilderMichael Dunn29-Jan-03 19:43 
GeneralQuestion 2 - (threads and message pump) Pin
Nitron27-Jan-03 3:50
Nitron27-Jan-03 3:50 
GeneralRe: Question 2 - (threads and message pump) Pin
PJ Arends27-Jan-03 7:06
professionalPJ Arends27-Jan-03 7:06 

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.