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

C / C++ / MFC

 
GeneralRe: exception handling Pin
Le centriste10-Jun-02 9:49
Le centriste10-Jun-02 9:49 
GeneralRe: exception handling Pin
Martin Ziacek10-Jun-02 18:47
Martin Ziacek10-Jun-02 18:47 
GeneralRe: exception handling Pin
Jason Henderson10-Jun-02 10:31
Jason Henderson10-Jun-02 10:31 
GeneralRe: exception handling Pin
Martin Ziacek10-Jun-02 18:55
Martin Ziacek10-Jun-02 18:55 
GeneralRe: exception handling Pin
John M. Drescher10-Jun-02 20:52
John M. Drescher10-Jun-02 20:52 
GeneralRe: exception handling Pin
Jason Henderson11-Jun-02 2:56
Jason Henderson11-Jun-02 2:56 
GeneralWorker Thread and Main Window Pin
arthivjii10-Jun-02 6:47
arthivjii10-Jun-02 6:47 
GeneralRe: Worker Thread and Main Window Pin
Joaquín M López Muñoz10-Jun-02 7:02
Joaquín M López Muñoz10-Jun-02 7:02 
To make a long story short, it is not safe to retrieve CWnd objects belonging to another thread. There are several possible workarounds:
  1. Enable a user-defined message in your UI thread that retrieves the active document (basically move your code to the message handler) and call it from the worker thread with SendMessage. This can pose some deadlock problems, though.
  2. Pass the worker thread a pointer to the document on launch time (using the extra parameter at your disposal.)


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Worker Thread and Main Window Pin
John M. Drescher10-Jun-02 20:59
John M. Drescher10-Jun-02 20:59 
GeneralRe: Worker Thread and Main Window Pin
Alexandru Savescu10-Jun-02 7:15
Alexandru Savescu10-Jun-02 7:15 
GeneralRe: Worker Thread and Main Window Pin
arthivjii10-Jun-02 7:30
arthivjii10-Jun-02 7:30 
GeneralRe: Worker Thread and Main Window Pin
Neville Franks10-Jun-02 10:04
Neville Franks10-Jun-02 10:04 
Generalarguments Pin
Nnamdi Onyeyiri10-Jun-02 6:36
Nnamdi Onyeyiri10-Jun-02 6:36 
GeneralRe: arguments Pin
Chris Losinger10-Jun-02 6:53
professionalChris Losinger10-Jun-02 6:53 
GeneralReading Certificates from IE store Pin
User 988510-Jun-02 6:41
User 988510-Jun-02 6:41 
GeneralUpdateData confusion Pin
dazinith10-Jun-02 5:23
dazinith10-Jun-02 5:23 
GeneralRe: UpdateData confusion Pin
Joaquín M López Muñoz10-Jun-02 5:36
Joaquín M López Muñoz10-Jun-02 5:36 
GeneralRe: UpdateData confusion Pin
Ed Gadziemski10-Jun-02 11:32
professionalEd Gadziemski10-Jun-02 11:32 
GeneralRe: UpdateData confusion Pin
dazinith11-Jun-02 3:16
dazinith11-Jun-02 3:16 
GeneralRe: UpdateData confusion Pin
dazinith11-Jun-02 3:17
dazinith11-Jun-02 3:17 
GeneralRe: UpdateData confusion Pin
John M. Drescher10-Jun-02 21:13
John M. Drescher10-Jun-02 21:13 
Generalwatch window in debug doesn't work Pin
John Oliver10-Jun-02 5:12
John Oliver10-Jun-02 5:12 
GeneralRe: watch window in debug doesn't work Pin
Joaquín M López Muñoz10-Jun-02 5:32
Joaquín M López Muñoz10-Jun-02 5:32 
QuestionHow to Dynamically add an Item to Menu? Pin
10-Jun-02 4:44
suss10-Jun-02 4:44 
AnswerRe: How to Dynamically add an Item to Menu? Pin
Lanny Thompson10-Jun-02 4:59
Lanny Thompson10-Jun-02 4:59 

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.