Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: execute an app from code Pin
Ed K12-Apr-04 8:34
Ed K12-Apr-04 8:34 
GeneralRe: execute an app from code Pin
BlackDice12-Apr-04 8:45
BlackDice12-Apr-04 8:45 
GeneralRe: execute an app from code Pin
Snyp12-Apr-04 11:26
Snyp12-Apr-04 11:26 
GeneralRe: execute an app from code Pin
Tim Smith12-Apr-04 18:21
Tim Smith12-Apr-04 18:21 
QuestionASSERT_VALID ? Pin
Jnewg512-Apr-04 7:13
Jnewg512-Apr-04 7:13 
AnswerRe: ASSERT_VALID ? Pin
Anthony_Yio13-Apr-04 0:21
Anthony_Yio13-Apr-04 0:21 
GeneralCWinThread "issues" Pin
T1TAN12-Apr-04 6:59
T1TAN12-Apr-04 6:59 
GeneralRe: CWinThread "issues" Pin
John M. Drescher12-Apr-04 8:18
John M. Drescher12-Apr-04 8:18 
I have been using multithreading with MFC for over 5 years and in my experience you will run into problems if you do any GUI code in a thread that is not the main window thread. You must never call any MFC gui code across thread boundries and never create any CViews in a thread that is not the main thread. This is because MFC uses thread local data to store a lot of its info about Doc and view. With that said your problem may be auto delete as CWinThread classes will automatically delete them selves on termination. You should disable this by setting m_bAutoDelete to FALSE and free the object yourself.

John
GeneralRe: CWinThread "issues" Pin
T1TAN12-Apr-04 8:53
T1TAN12-Apr-04 8:53 
GeneralRe: CWinThread "issues" Pin
John M. Drescher12-Apr-04 8:58
John M. Drescher12-Apr-04 8:58 
GeneralRe: CWinThread "issues" Pin
T1TAN12-Apr-04 9:17
T1TAN12-Apr-04 9:17 
GeneralRe: CWinThread "issues" Pin
John M. Drescher12-Apr-04 9:33
John M. Drescher12-Apr-04 9:33 
GeneralRe: CWinThread "issues" Pin
T1TAN12-Apr-04 9:41
T1TAN12-Apr-04 9:41 
GeneralRe: CWinThread "issues" Pin
John M. Drescher12-Apr-04 10:36
John M. Drescher12-Apr-04 10:36 
GeneralRe: CWinThread "issues" Pin
dreamerzz18-Apr-04 0:07
dreamerzz18-Apr-04 0:07 
GeneralRe: CWinThread "issues" Pin
John M. Drescher18-Apr-04 18:13
John M. Drescher18-Apr-04 18:13 
GeneralRe: CWinThread "issues" Pin
dreamerzz20-Apr-04 2:15
dreamerzz20-Apr-04 2:15 
GeneralRe: CWinThread "issues" Pin
John M. Drescher20-Apr-04 4:28
John M. Drescher20-Apr-04 4:28 
GeneralCreating string from BSTR Pin
yanuart12-Apr-04 6:25
yanuart12-Apr-04 6:25 
GeneralRe: Creating string from BSTR Pin
Darshan Jani12-Apr-04 7:02
Darshan Jani12-Apr-04 7:02 
GeneralRe: Creating string from BSTR Pin
GuimaSun12-Apr-04 7:07
GuimaSun12-Apr-04 7:07 
GeneralKeep the Client DC state in a Bitmap Pin
stelitsisan12-Apr-04 5:40
stelitsisan12-Apr-04 5:40 
GeneralCustomized CFileDialog Pin
benny232312-Apr-04 5:28
benny232312-Apr-04 5:28 
GeneralRe: Customized CFileDialog Pin
David Crow12-Apr-04 7:40
David Crow12-Apr-04 7:40 
GeneralRe: Customized CFileDialog Pin
benny232312-Apr-04 8:36
benny232312-Apr-04 8:36 

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.