|
-
April 4th, 2009, 01:18 PM
#21
Re: MFC - Cdialog::OnOK() in Thread
 Originally Posted by ADSOFT
Code:
UINT WorkerThreadProc( LPVOID Param ){
CFormHdrView *pCFV ;
pCFV = (CFormHdrView *)Param;
if(::gpCFVw_Hdr == NULL)::AfxMessageBox("Null Pointer");
...
}
Again it is wrong. 
Don't pop up any window from within a worker thread! The illusion it sometimes "works" does not mean it is correct and will work for ever. Unfortunately no, it won't!
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|