Click here to Skip to main content
16,012,153 members
Home / Discussions / COM
   

COM

 
AnswerRe: ActiveX Control Pin
Roger Stoltz27-Nov-06 20:55
Roger Stoltz27-Nov-06 20:55 
GeneralRe: ActiveX Control Pin
HakunaMatada27-Nov-06 21:29
HakunaMatada27-Nov-06 21:29 
GeneralRe: ActiveX Control Pin
Roger Stoltz27-Nov-06 21:49
Roger Stoltz27-Nov-06 21:49 
QuestionWMI Pin
abhiramsss27-Nov-06 9:38
abhiramsss27-Nov-06 9:38 
QuestionUnhandled Exception in Popup blocker code Pin
georgekjolly25-Nov-06 3:56
georgekjolly25-Nov-06 3:56 
QuestionIE window manipulation using web browser object Pin
georgekjolly25-Nov-06 2:22
georgekjolly25-Nov-06 2:22 
QuestionAccess Violation occur when use goForward() or goBack() method in IWebBrowser2 Pin
Lee bo24-Nov-06 3:30
Lee bo24-Nov-06 3:30 
AnswerRe: Access Violation occur when use goForward() or goBack() method in IWebBrowser2 Pin
Roger Stoltz24-Nov-06 4:55
Roger Stoltz24-Nov-06 4:55 
The explanations for the crashes can be numerous, but one serious conceptual error has been made in the code you provided:
You've spawned a secondary thread that uses the interfaces you've got in the main thread.

When you access COM servers from other threads than the one that created the server, you have to (a) initialize the new COM apartment with a call to CoInitialize() and (b) marshal the interface to the secondary thread.

You have to fix this before digging further down in your chase for the cause of the crashes.
You can read about it in MSDN[^], or Lim Bio Liong's excellent articles on the subject here (1)[^] and here (2)[^].

Hope this helps
--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above

QuestionAdding function to interface. Pin
Suresh H22-Nov-06 18:15
Suresh H22-Nov-06 18:15 
QuestionHow can i call C# interface function from C++ ( visual 6 ) application ? Pin
Yanshof22-Nov-06 0:55
Yanshof22-Nov-06 0:55 
AnswerRe: How can i call C# interface function from C++ ( visual 6 ) application ? Pin
ThatsAlok3-Dec-06 19:33
ThatsAlok3-Dec-06 19:33 
QuestionHow do you implement an Event Sink without a Type Library? Pin
Bathory's Curse21-Nov-06 7:01
Bathory's Curse21-Nov-06 7:01 
AnswerRe: How do you implement an Event Sink without a Type Library? Pin
Stephen Hewitt21-Nov-06 11:50
Stephen Hewitt21-Nov-06 11:50 
GeneralRe: How do you implement an Event Sink without a Type Library? Pin
Bathory's Curse21-Nov-06 13:44
Bathory's Curse21-Nov-06 13:44 
GeneralRe: How do you implement an Event Sink without a Type Library? Pin
Stephen Hewitt21-Nov-06 14:38
Stephen Hewitt21-Nov-06 14:38 
GeneralRe: How do you implement an Event Sink without a Type Library? Pin
Bathory's Curse22-Nov-06 10:05
Bathory's Curse22-Nov-06 10:05 
Questionhow to know the name of dll? Pin
kalaveer21-Nov-06 1:05
kalaveer21-Nov-06 1:05 
QuestionCom exe and dll Pin
ashokvishnu20-Nov-06 16:42
ashokvishnu20-Nov-06 16:42 
AnswerRe: Com exe and dll Pin
Roger Stoltz20-Nov-06 21:43
Roger Stoltz20-Nov-06 21:43 
QuestionPorting D/COM OLE Server from W2K to WXP : Issues Pin
sebastien_pelle20-Nov-06 5:29
sebastien_pelle20-Nov-06 5:29 
QuestionConvert pdf to tiff Pin
Dudi Avramov20-Nov-06 3:57
Dudi Avramov20-Nov-06 3:57 
QuestionNewWIndow2 Event Sink problem Pin
yokos117-Nov-06 12:26
yokos117-Nov-06 12:26 
GeneralRe: NewWIndow2 Event Sink problem Pin
prasad_som19-Nov-06 18:31
prasad_som19-Nov-06 18:31 
Questionmemory issues Releasing Interface in VB 6 Pin
el_scrub16-Nov-06 22:34
el_scrub16-Nov-06 22:34 
AnswerRe: memory issues Releasing Interface in VB 6 Pin
prasad_som16-Nov-06 23:19
prasad_som16-Nov-06 23:19 

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.