Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: fstream Pin
mpk197922-Oct-06 22:47
mpk197922-Oct-06 22:47 
QuestionAssertion error upon second run of thread Pin
searcher0822-Oct-06 17:14
searcher0822-Oct-06 17:14 
AnswerRe: Assertion error upon second run of thread Pin
Blake Miller23-Oct-06 4:12
Blake Miller23-Oct-06 4:12 
GeneralRe: Assertion error upon second run of thread Pin
searcher0823-Oct-06 6:33
searcher0823-Oct-06 6:33 
GeneralRe: Assertion error upon second run of thread Pin
Blake Miller23-Oct-06 7:42
Blake Miller23-Oct-06 7:42 
GeneralRe: Assertion error upon second run of thread Pin
searcher0823-Oct-06 13:18
searcher0823-Oct-06 13:18 
GeneralRe: Assertion error upon second run of thread Pin
Blake Miller24-Oct-06 2:36
Blake Miller24-Oct-06 2:36 
GeneralRe: Assertion error upon second run of thread Pin
searcher0824-Oct-06 13:11
searcher0824-Oct-06 13:11 
I tried the method as advised. However, an error occurred at the delete(ThreadHD) line. I think that if the thread has exited, there should not be a need to delete it. Please advise. Thanks.


CWinThread* ThreadHD = AfxBeginThread(DecodeThreadProc,pfilename,THREAD_PRIORITY_NORMAL,0,CREATE_SUSPENDED,NULL);

ThreadHD->m_bAutoDelete = TRUE;
ThreadHD->ResumeThread();

.
.
.

delete(ThreadHD);
ThreadHead=NULL;
GeneralRe: Assertion error upon second run of thread Pin
Blake Miller25-Oct-06 3:55
Blake Miller25-Oct-06 3:55 
QuestionUSB Specific Programming Pin
legit22-Oct-06 14:43
legit22-Oct-06 14:43 
AnswerRe: USB Specific Programming Pin
Cedric Moonen22-Oct-06 20:24
Cedric Moonen22-Oct-06 20:24 
GeneralRe: USB Specific Programming Pin
legit23-Oct-06 5:03
legit23-Oct-06 5:03 
Questionresource hiding Pin
Lord_Vader22-Oct-06 11:30
Lord_Vader22-Oct-06 11:30 
AnswerRe: resource hiding Pin
Ali Mojtabaee22-Oct-06 12:28
Ali Mojtabaee22-Oct-06 12:28 
GeneralRe: resource hiding Pin
jhwurmbach23-Oct-06 0:57
jhwurmbach23-Oct-06 0:57 
QuestionDatabase application design Pin
Francesco Aruta22-Oct-06 11:08
Francesco Aruta22-Oct-06 11:08 
QuestionCString.Format - new line? Pin
Oliver12322-Oct-06 11:00
Oliver12322-Oct-06 11:00 
AnswerRe: CString.Format - new line? Pin
Le Thanh Cong22-Oct-06 17:37
Le Thanh Cong22-Oct-06 17:37 
AnswerRe: CString.Format - new line? Pin
David Crow23-Oct-06 4:13
David Crow23-Oct-06 4:13 
GeneralRe: CString.Format - new line? Pin
Oliver12323-Oct-06 10:45
Oliver12323-Oct-06 10:45 
GeneralRe: CString.Format - new line? Pin
David Crow24-Oct-06 3:08
David Crow24-Oct-06 3:08 
GeneralRe: CString.Format - new line? Pin
Oliver12325-Oct-06 10:01
Oliver12325-Oct-06 10:01 
QuestionSendMessage/PostMessage Pin
sawerr22-Oct-06 10:49
sawerr22-Oct-06 10:49 
AnswerRe: SendMessage/PostMessage Pin
Midworld0822-Oct-06 11:40
Midworld0822-Oct-06 11:40 
AnswerRe: SendMessage/PostMessage Pin
Mark Salsbery22-Oct-06 11:44
Mark Salsbery22-Oct-06 11:44 

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.