Click here to Skip to main content
15,921,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMessageBox results in deadlock Pin
andreaswimmer30-Oct-05 19:18
andreaswimmer30-Oct-05 19:18 
Hi,

I have a modal CDialog which displays a (modeless) CPropertySheet with some CPropertyPages. Everything works fine so far. However, when I show a MessageBox in responese to a button on one of the property pages being clicked, I get a deadlock and the message box does not appear. When I show the message box in response to a button directly on the dialog being clicked, everything works fine.

In short:
Modal_Dialog -> Button -> MessageBox: works
Modal_Dialog -> PropertySheet -> PropertyPage -> Button -> MessageBox: deadlock

I've tried various owner windows for the message box: NULL, the dialog, the main app. window - always the same result. Actually, I'd like to display a CColorDialog, it's the same problem here.

Any help is highly appreciated!

I'm running Visual C++ 6.0 under Windows XP Pro.

Best regards,

Andreas

AnswerRe: MessageBox results in deadlock Pin
Mircea Puiu30-Oct-05 20:02
Mircea Puiu30-Oct-05 20:02 
GeneralRe: MessageBox results in deadlock Pin
andreaswimmer30-Oct-05 20:34
andreaswimmer30-Oct-05 20:34 
QuestionDNS Caching issue Pin
c++code10130-Oct-05 18:55
c++code10130-Oct-05 18:55 
QuestionRe: DNS Caching issue Pin
David Crow31-Oct-05 3:21
David Crow31-Oct-05 3:21 
AnswerRe: DNS Caching issue Pin
c++code10131-Oct-05 6:52
c++code10131-Oct-05 6:52 
Questionsimple string problem.... Pin
tirucapricorn30-Oct-05 18:51
tirucapricorn30-Oct-05 18:51 
AnswerRe: simple string problem.... Pin
Mircea Puiu30-Oct-05 20:53
Mircea Puiu30-Oct-05 20:53 
GeneralRe: simple string problem.... Pin
ThatsAlok30-Oct-05 21:38
ThatsAlok30-Oct-05 21:38 
GeneralRe: simple string problem.... Pin
Mircea Puiu30-Oct-05 22:03
Mircea Puiu30-Oct-05 22:03 
GeneralRe: simple string problem.... Pin
ThatsAlok30-Oct-05 22:25
ThatsAlok30-Oct-05 22:25 
GeneralRe: simple string problem.... Pin
Mircea Puiu30-Oct-05 22:39
Mircea Puiu30-Oct-05 22:39 
GeneralRe: simple string problem.... Pin
tirucapricorn31-Oct-05 0:21
tirucapricorn31-Oct-05 0:21 
QuestionStrang problem, ask for help ! Pin
chenxiujie30-Oct-05 16:53
chenxiujie30-Oct-05 16:53 
AnswerRe: Strang problem, ask for help ! Pin
Christian Graus30-Oct-05 17:37
protectorChristian Graus30-Oct-05 17:37 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 18:06
chenxiujie30-Oct-05 18:06 
GeneralRe: Strang problem, ask for help ! Pin
Christian Graus30-Oct-05 18:08
protectorChristian Graus30-Oct-05 18:08 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 19:05
chenxiujie30-Oct-05 19:05 
GeneralRe: Strang problem, ask for help ! Pin
Mircea Puiu30-Oct-05 20:55
Mircea Puiu30-Oct-05 20:55 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 21:06
chenxiujie30-Oct-05 21:06 
GeneralRe: Strang problem, ask for help ! Pin
Mircea Puiu30-Oct-05 21:13
Mircea Puiu30-Oct-05 21:13 
GeneralRe: Strang problem, ask for help ! Pin
ThatsAlok30-Oct-05 21:31
ThatsAlok30-Oct-05 21:31 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 21:51
chenxiujie30-Oct-05 21:51 
GeneralRe: Strang problem, ask for help ! Pin
ThatsAlok30-Oct-05 22:41
ThatsAlok30-Oct-05 22:41 
GeneralRe: Strang problem, ask for help ! Pin
Christian Graus31-Oct-05 10:56
protectorChristian Graus31-Oct-05 10:56 

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.