Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ID_FILE_SAVE lost Pin
«_Superman_»15-Feb-10 4:02
professional«_Superman_»15-Feb-10 4:02 
GeneralRe: ID_FILE_SAVE lost [modified] Pin
CODEPC15-Feb-10 4:07
CODEPC15-Feb-10 4:07 
GeneralRe: ID_FILE_SAVE lost Pin
«_Superman_»15-Feb-10 17:27
professional«_Superman_»15-Feb-10 17:27 
Questioncompact database Pin
kk.tvm15-Feb-10 1:15
kk.tvm15-Feb-10 1:15 
AnswerRe: compact database Pin
CPallini15-Feb-10 1:38
mveCPallini15-Feb-10 1:38 
Questionconguring a special style for CMFCOutlookBarTabCtrl class Pin
A&Ms14-Feb-10 23:42
A&Ms14-Feb-10 23:42 
AnswerRe: conguring a special style for CMFCOutlookBarTabCtrl class Pin
A&Ms15-Feb-10 10:06
A&Ms15-Feb-10 10:06 
QuestionUnstable Thread runs! Pin
mostafa_pasha14-Feb-10 22:38
mostafa_pasha14-Feb-10 22:38 
I run a worker thread like this:

m_first = AfxBeginThread(MyThreadProcTT1, segmentation,THREAD_PRIORITY_ABOVE_NORMAL);

in the MyThreadProcTT1, i run four worker threads like this:

CWinThread* first=NULL;
first = AfxBeginThread(MyThreadProc, pNewObject,THREAD_PRIORITY_ABOVE_NORMAL);
second = AfxBeginThread(MyThreadProc1, pNewObject1,THREAD_PRIORITY_ABOVE_NORMAL);
third = AfxBeginThread(MyThreadProc2, pNewObject2,THREAD_PRIORITY_ABOVE_NORMAL);
forth = AfxBeginThread(MyThreadProc3, pNewObject3,THREAD_PRIORITY_ABOVE_NORMAL);


WaitForSingleObject(first->m_hThread, INFINITE);
WaitForSingleObject(second->m_hThread, INFINITE);
WaitForSingleObject(third->m_hThread, INFINITE);
WaitForSingleObject(forth->m_hThread, INFINITE);

in most of the time, the program work fine. But in some situations, the program halts and do not anything!
Is there anyone can help me!


Best,
MJM
AnswerRe: Unstable Thread runs! Pin
Rajesh R Subramanian14-Feb-10 22:43
professionalRajesh R Subramanian14-Feb-10 22:43 
GeneralRe: Unstable Thread runs! Pin
mostafa_pasha15-Feb-10 3:59
mostafa_pasha15-Feb-10 3:59 
GeneralRe: Unstable Thread runs! Pin
Rajesh R Subramanian15-Feb-10 6:38
professionalRajesh R Subramanian15-Feb-10 6:38 
GeneralRe: Unstable Thread runs! Pin
mostafa_pasha15-Feb-10 10:16
mostafa_pasha15-Feb-10 10:16 
AnswerRe: Unstable Thread runs! Pin
Rajesh R Subramanian15-Feb-10 17:03
professionalRajesh R Subramanian15-Feb-10 17:03 
QuestionCoUninitialize in ExitInstance hangs Pin
VictorSotnikov14-Feb-10 22:28
VictorSotnikov14-Feb-10 22:28 
AnswerRe: CoUninitialize in ExitInstance hangs Pin
CPallini14-Feb-10 22:37
mveCPallini14-Feb-10 22:37 
GeneralRe: CoUninitialize in ExitInstance hangs Pin
VictorSotnikov15-Feb-10 0:09
VictorSotnikov15-Feb-10 0:09 
QuestionDisplay Huge Size file content in dialog Pin
Prabhu09200914-Feb-10 22:20
Prabhu09200914-Feb-10 22:20 
AnswerRe: Display Huge Size file content in dialog Pin
«_Superman_»14-Feb-10 22:25
professional«_Superman_»14-Feb-10 22:25 
GeneralRe: Display Huge Size file content in dialog Pin
Prabhu09200914-Feb-10 22:37
Prabhu09200914-Feb-10 22:37 
GeneralRe: Display Huge Size file content in dialog Pin
«_Superman_»14-Feb-10 22:48
professional«_Superman_»14-Feb-10 22:48 
NewsRe: Display Huge Size file content in dialog Pin
Prabhu09200915-Feb-10 0:48
Prabhu09200915-Feb-10 0:48 
GeneralRe: Display Huge Size file content in dialog Pin
Maximilien15-Feb-10 1:28
Maximilien15-Feb-10 1:28 
GeneralRe: Display Huge Size file content in dialog Pin
Rajesh R Subramanian15-Feb-10 1:41
professionalRajesh R Subramanian15-Feb-10 1:41 
QuestionRe: Display Huge Size file content in dialog Pin
CPallini14-Feb-10 22:55
mveCPallini14-Feb-10 22:55 
QuestionWrong partion info for Dynamic disk using DeviceIoControl Pin
MKC00214-Feb-10 22:03
MKC00214-Feb-10 22:03 

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.