Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExiting process Pin
koumodaki12-Sep-07 6:16
koumodaki12-Sep-07 6:16 
AnswerRe: Exiting process Pin
Hamid_RT12-Sep-07 6:44
Hamid_RT12-Sep-07 6:44 
AnswerRe: Exiting process Pin
Mark Salsbery12-Sep-07 6:45
Mark Salsbery12-Sep-07 6:45 
AnswerRe: Exiting process Pin
aks.12-Sep-07 15:49
aks.12-Sep-07 15:49 
Questionproblem with multithreading and wrapper-class object Pin
kyer12-Sep-07 4:53
kyer12-Sep-07 4:53 
AnswerRe: problem with multithreading and wrapper-class object Pin
Randor 12-Sep-07 4:59
professional Randor 12-Sep-07 4:59 
GeneralRe: problem with multithreading and wrapper-class object Pin
kyer12-Sep-07 5:30
kyer12-Sep-07 5:30 
GeneralRe: problem with multithreading and wrapper-class object Pin
Randor 12-Sep-07 6:07
professional Randor 12-Sep-07 6:07 
Why can't you just move all of the COM instantiation and function calls into the thread?

Also if you are accessing/writing to a variable visible to more than one thread, you will need to protect that variable with a critical section or other thread synchronization object. In other words, if variable N is readable/writable to both threads A and B then you will need to protect this variable. A simple CriticalSection object should be sufficient.

It is 1800 here in Norway/Norwegen and I am leaving the office for the day, but there are many articles here on Codeproject which address the issues with regards to multithreading your application and synchronizing access to variables.

Good luck!
-Randor
GeneralRe: problem with multithreading and wrapper-class object Pin
kyer12-Sep-07 8:23
kyer12-Sep-07 8:23 
AnswerSolution Pin
kyer12-Sep-07 9:12
kyer12-Sep-07 9:12 
Questionexcel problem Pin
tunminhein12-Sep-07 4:28
tunminhein12-Sep-07 4:28 
QuestionRe: excel problem Pin
David Crow12-Sep-07 5:33
David Crow12-Sep-07 5:33 
QuestionProjectsettings for dual core cpu's? Pin
bosfan12-Sep-07 4:19
bosfan12-Sep-07 4:19 
AnswerRe: Projectsettings for dual core cpu's? Pin
Randor 12-Sep-07 4:22
professional Randor 12-Sep-07 4:22 
GeneralRe: Projectsettings for dual core cpu's? Pin
bosfan12-Sep-07 4:28
bosfan12-Sep-07 4:28 
GeneralRe: Projectsettings for dual core cpu's? Pin
carrivick12-Sep-07 21:50
carrivick12-Sep-07 21:50 
GeneralRe: Projectsettings for dual core cpu's? Pin
bosfan12-Sep-07 21:55
bosfan12-Sep-07 21:55 
Questiontemplate specialization Pin
Russell'12-Sep-07 3:51
Russell'12-Sep-07 3:51 
AnswerRe: template specialization Pin
Nelek12-Sep-07 3:57
protectorNelek12-Sep-07 3:57 
GeneralRe: template specialization Pin
Russell'12-Sep-07 4:01
Russell'12-Sep-07 4:01 
GeneralRe: template specialization Pin
Nelek12-Sep-07 4:37
protectorNelek12-Sep-07 4:37 
GeneralRe: template specialization Pin
Russell'12-Sep-07 5:55
Russell'12-Sep-07 5:55 
GeneralRe: template specialization Pin
Nelek12-Sep-07 21:45
protectorNelek12-Sep-07 21:45 
AnswerRe: template specialization Pin
Cedric Moonen12-Sep-07 4:08
Cedric Moonen12-Sep-07 4:08 
GeneralRe: template specialization Pin
Nelek12-Sep-07 4:32
protectorNelek12-Sep-07 4:32 

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.