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

C / C++ / MFC

 
QuestionProblem with getchar(); Pin
EzraYap23-Sep-06 5:27
EzraYap23-Sep-06 5:27 
AnswerRe: Problem with getchar(); Pin
ThatsAlok23-Sep-06 5:53
ThatsAlok23-Sep-06 5:53 
GeneralRe: Problem with getchar(); Pin
EzraYap23-Sep-06 6:04
EzraYap23-Sep-06 6:04 
GeneralRe: Problem with getchar(); Pin
Jörgen Sigvardsson23-Sep-06 8:14
Jörgen Sigvardsson23-Sep-06 8:14 
GeneralRe: Problem with getchar(); Pin
ThatsAlok23-Sep-06 8:40
ThatsAlok23-Sep-06 8:40 
QuestionWhat wrong with this Code ?? ( multiThread in win32 ) Pin
Yanshof23-Sep-06 5:11
Yanshof23-Sep-06 5:11 
AnswerRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Mohammad A Gdeisat23-Sep-06 6:04
Mohammad A Gdeisat23-Sep-06 6:04 
GeneralRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Yanshof23-Sep-06 6:08
Yanshof23-Sep-06 6:08 
I don't have deadlock. and the algorithm is fine.

In case deadlock the application will not crash -
If i init the critical section ( in first line of the main i do InitializeCriticalSection(&sc); ) then i avoid the crash but i still see that the second thread get into the critical area even that the first thread is in it.

What wrong in the code ?
AnswerRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Yanshof23-Sep-06 8:16
Yanshof23-Sep-06 8:16 
AnswerRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Hamid_RT23-Sep-06 8:33
Hamid_RT23-Sep-06 8:33 
AnswerRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Eytukan23-Sep-06 8:40
Eytukan23-Sep-06 8:40 
GeneralRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Yanshof23-Sep-06 8:58
Yanshof23-Sep-06 8:58 
AnswerRe: What wrong with this Code ?? ( multiThread in win32 ) Pin
Eytukan23-Sep-06 9:35
Eytukan23-Sep-06 9:35 
QuestionHow to Unload CListCtrl Pin
georgekjolly23-Sep-06 4:12
georgekjolly23-Sep-06 4:12 
AnswerRe: How to Unload CListCtrl Pin
ThatsAlok23-Sep-06 6:02
ThatsAlok23-Sep-06 6:02 
AnswerRe: How to Unload CListCtrl Pin
Jörgen Sigvardsson23-Sep-06 8:20
Jörgen Sigvardsson23-Sep-06 8:20 
GeneralRe: How to Unload CListCtrl Pin
ThatsAlok23-Sep-06 9:09
ThatsAlok23-Sep-06 9:09 
GeneralRe: How to Unload CListCtrl Pin
Jörgen Sigvardsson23-Sep-06 9:11
Jörgen Sigvardsson23-Sep-06 9:11 
GeneralRe: How to Unload CListCtrl Pin
ThatsAlok4-Oct-06 7:35
ThatsAlok4-Oct-06 7:35 
GeneralRe: How to Unload CListCtrl Pin
Jörgen Sigvardsson4-Oct-06 8:17
Jörgen Sigvardsson4-Oct-06 8:17 
GeneralRe: How to Unload CListCtrl Pin
ThatsAlok4-Oct-06 9:19
ThatsAlok4-Oct-06 9:19 
AnswerRe: How to Unload CListCtrl Pin
Hamid_RT23-Sep-06 8:25
Hamid_RT23-Sep-06 8:25 
AnswerRe: How to Unload CListCtrl Pin
Eytukan23-Sep-06 8:53
Eytukan23-Sep-06 8:53 
QuestionRe: How to Unload CListCtrl Pin
Bravoone_200625-Sep-06 1:59
Bravoone_200625-Sep-06 1:59 
AnswerRe: How to Unload CListCtrl Pin
Eytukan25-Sep-06 2:06
Eytukan25-Sep-06 2:06 

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.