Click here to Skip to main content
15,898,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: add column into control CListCtrl Pin
Iain Clarke, Warrior Programmer6-Apr-09 2:07
Iain Clarke, Warrior Programmer6-Apr-09 2:07 
GeneralRe: add column into control CListCtrl Pin
Rajesh R Subramanian6-Apr-09 3:41
professionalRajesh R Subramanian6-Apr-09 3:41 
JokeRe: add column into control CListCtrl Pin
Cedric Moonen6-Apr-09 3:48
Cedric Moonen6-Apr-09 3:48 
AnswerRe: add column into control CListCtrl Pin
Iain Clarke, Warrior Programmer6-Apr-09 1:39
Iain Clarke, Warrior Programmer6-Apr-09 1:39 
QuestionDividing property shett into two parts Pin
irshad13856-Apr-09 0:48
irshad13856-Apr-09 0:48 
AnswerRe: Dividing property shett into two parts Pin
Iain Clarke, Warrior Programmer6-Apr-09 1:53
Iain Clarke, Warrior Programmer6-Apr-09 1:53 
QuestionPostNCDestroy Problem Pin
S p k 5216-Apr-09 0:33
S p k 5216-Apr-09 0:33 
AnswerRe: PostNCDestroy Problem Pin
Iain Clarke, Warrior Programmer6-Apr-09 1:30
Iain Clarke, Warrior Programmer6-Apr-09 1:30 
Essentially, it is not safe to do things with MFc from more than one thread. The mapping from real windows things (like window handles) to MFC thingies (like CWnd's) "live" in the main thread.

I am going from your sentence:
S p k 521 wrote:
In that function, i am destroying the this ptr such that more than one thread can make use of it


In my big fat app, I use MFC in the main thread, and occasional use of things like m_pSomeWnd->PostMessage (wm_blah) to talk back from threads.

So I suspect the multithreaded dialogs are shooting you in the foot, and you're getting lovely race conditions.

I don't know what to recommend other than redesign of you app. Or maybe going pure Win32 old school if you must have dialogs running in different threads...

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

QuestionRe: PostNCDestroy Problem Pin
David Crow6-Apr-09 3:18
David Crow6-Apr-09 3:18 
AnswerRe: PostNCDestroy Problem Pin
S p k 5216-Apr-09 18:10
S p k 5216-Apr-09 18:10 
Questionsource code for distributed mutual exclusion Pin
shriyangika5-Apr-09 23:45
shriyangika5-Apr-09 23:45 
QuestionRe: source code for distributed mutual exclusion Pin
CPallini5-Apr-09 23:58
mveCPallini5-Apr-09 23:58 
QuestionMFC Visual Studio Project Never Gets Updated Pin
phydthekid5-Apr-09 23:30
phydthekid5-Apr-09 23:30 
AnswerRe: MFC Visual Studio Project Never Gets Updated Pin
kakan6-Apr-09 1:17
professionalkakan6-Apr-09 1:17 
QuestionRe: MFC Visual Studio Project Never Gets Updated Pin
phydthekid6-Apr-09 2:46
phydthekid6-Apr-09 2:46 
AnswerRe: MFC Visual Studio Project Never Gets Updated Pin
kakan6-Apr-09 3:11
professionalkakan6-Apr-09 3:11 
AnswerRe: MFC Visual Studio Project Never Gets Updated Pin
phydthekid7-Apr-09 23:24
phydthekid7-Apr-09 23:24 
GeneralRe: MFC Visual Studio Project Never Gets Updated Pin
kakan8-Apr-09 1:45
professionalkakan8-Apr-09 1:45 
QuestionHow to get the total time of the wav file. Pin
Deepu Antony5-Apr-09 23:01
Deepu Antony5-Apr-09 23:01 
AnswerRe: How to get the total time of the wav file. Pin
David Crow6-Apr-09 3:25
David Crow6-Apr-09 3:25 
GeneralRe: How to get the total time of the wav file. Pin
Deepu Antony6-Apr-09 3:40
Deepu Antony6-Apr-09 3:40 
GeneralRe: How to get the total time of the wav file. Pin
David Crow6-Apr-09 3:57
David Crow6-Apr-09 3:57 
GeneralRe: How to get the total time of the wav file. Pin
Deepu Antony6-Apr-09 4:36
Deepu Antony6-Apr-09 4:36 
GeneralRe: How to get the total time of the wav file. Pin
Deepu Antony6-Apr-09 6:16
Deepu Antony6-Apr-09 6:16 
QuestionTabStop not working when add image over a button control. Pin
Le@rner5-Apr-09 21:11
Le@rner5-Apr-09 21:11 

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.