Click here to Skip to main content
15,911,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: SendMessage/PostMessage Pin
Michael Dunn22-Oct-06 12:09
sitebuilderMichael Dunn22-Oct-06 12:09 
GeneralRe: SendMessage/PostMessage Pin
sawerr22-Oct-06 12:58
sawerr22-Oct-06 12:58 
QuestionTime and Date [modified] Pin
locoone22-Oct-06 8:32
locoone22-Oct-06 8:32 
AnswerRe: Time and Date Pin
jeron122-Oct-06 9:48
jeron122-Oct-06 9:48 
GeneralRe: Time and Date Pin
locoone22-Oct-06 9:50
locoone22-Oct-06 9:50 
GeneralRe: Time and Date Pin
Mark Salsbery22-Oct-06 11:32
Mark Salsbery22-Oct-06 11:32 
AnswerRe: Time and Date Pin
Michael Dunn22-Oct-06 9:50
sitebuilderMichael Dunn22-Oct-06 9:50 

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.