Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: visual c++ 2005 newbie Pin
Cedric Moonen8-Sep-06 8:12
Cedric Moonen8-Sep-06 8:12 
GeneralRe: visual c++ 2005 newbie Pin
Jun Du8-Sep-06 9:13
Jun Du8-Sep-06 9:13 
QuestionApartment model, COM and misery (duplicate from the COM forum) Pin
BadJerry8-Sep-06 5:45
BadJerry8-Sep-06 5:45 
AnswerRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
JWood8-Sep-06 6:53
JWood8-Sep-06 6:53 
GeneralRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
BadJerry8-Sep-06 7:02
BadJerry8-Sep-06 7:02 
GeneralRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
JWood8-Sep-06 7:39
JWood8-Sep-06 7:39 
GeneralRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
BadJerry8-Sep-06 8:23
BadJerry8-Sep-06 8:23 
GeneralRe: Apartment model, COM and misery (duplicate from the COM forum) [modified] Pin
JWood8-Sep-06 8:44
JWood8-Sep-06 8:44 
Geez OK well this is my somewhat limited take on it. My understanding is that in STA it acts like a UI - it responds to input, while in the MTA it is internally handled - Are you sure you need MTA?

STA can handle multiple threads it is just that there one to one relationship between the apartments and the threads. In MTA the threads are sort of like in a mixed bag that you are required to do some extra coding for. I am not sure what the exact problem if you are always coming up the same thread - can you clip some code that shows the getting of the thread / thread pointer?

You might be interested in this article:

COM Apartments and .NET Threads[^]


-- modified at 15:18 Friday 8th September, 2006


A cynic is a man who, when he smells flowers, looks around for a coffin.
-H.L. Mencken


GeneralRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
BadJerry8-Sep-06 9:51
BadJerry8-Sep-06 9:51 
Questionassert... Pin
jon-808-Sep-06 5:19
professionaljon-808-Sep-06 5:19 
AnswerRe: assert... Pin
Zac Howland8-Sep-06 5:26
Zac Howland8-Sep-06 5:26 
AnswerRe: assert... Pin
Anand Vivek Srivastava8-Sep-06 5:42
Anand Vivek Srivastava8-Sep-06 5:42 
AnswerRe: assert... Pin
John M. Drescher8-Sep-06 5:48
John M. Drescher8-Sep-06 5:48 
GeneralRe: assert... Pin
Zac Howland8-Sep-06 6:40
Zac Howland8-Sep-06 6:40 
QuestionCImage Pin
messages8-Sep-06 3:56
messages8-Sep-06 3:56 
AnswerRe: CImage Pin
Christopher Stratmann8-Sep-06 4:17
Christopher Stratmann8-Sep-06 4:17 
GeneralRe: CImage Pin
messages8-Sep-06 4:27
messages8-Sep-06 4:27 
GeneralRe: CImage Pin
Christopher Stratmann8-Sep-06 5:54
Christopher Stratmann8-Sep-06 5:54 
QuestionNamed Pipes buffer problem (Win32) Pin
vga28-Sep-06 2:53
vga28-Sep-06 2:53 
AnswerRe: Named Pipes buffer problem (Win32) Pin
Richard Andrew x648-Sep-06 19:48
professionalRichard Andrew x648-Sep-06 19:48 
GeneralRe: Named Pipes buffer problem (Win32) Pin
vga210-Sep-06 22:36
vga210-Sep-06 22:36 
QuestionRPC Authentication won't work Pin
Mr.Brainley8-Sep-06 2:13
Mr.Brainley8-Sep-06 2:13 
AnswerRe: RPC Authentication won't work Pin
Programm3r8-Sep-06 2:20
Programm3r8-Sep-06 2:20 
GeneralRe: RPC Authentication won't work Pin
Mr.Brainley8-Sep-06 2:39
Mr.Brainley8-Sep-06 2:39 
GeneralRe: RPC Authentication won't work Pin
Programm3r8-Sep-06 2:43
Programm3r8-Sep-06 2:43 

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.