Click here to Skip to main content
15,917,709 members
Home / Discussions / COM
   

COM

 
AnswerRe: COM newbie: LNK2005 Pin
Jose M Castellanos13-Sep-05 1:25
Jose M Castellanos13-Sep-05 1:25 
QuestionHow to Show ActiveX Control on a Window? Pin
Ashwin kumar Gurujala11-Sep-05 23:30
Ashwin kumar Gurujala11-Sep-05 23:30 
QuestionActiveX control container Pin
code_chenyf8-Sep-05 14:36
code_chenyf8-Sep-05 14:36 
QuestionUpdate (Windows) Pin
Illegal Operation8-Sep-05 4:10
Illegal Operation8-Sep-05 4:10 
QuestionSTA & MTA Pin
MailtoGops8-Sep-05 3:07
MailtoGops8-Sep-05 3:07 
QuestionExcel Automation problem Pin
HeartFriend7-Sep-05 20:22
HeartFriend7-Sep-05 20:22 
QuestionCOM and access rights (perhaps ?) Pin
gnilk6-Sep-05 2:17
gnilk6-Sep-05 2:17 
QuestionHow to properly stop STA thread Pin
ComplexLifeForm3-Sep-05 7:19
ComplexLifeForm3-Sep-05 7:19 
Hi,

I am using a third party COM component to connect to a remote SSH server. For this I have created a STA thread. Now I have a trivial user scenario, when the user issues a connect command a modal dialog is shown with a cancel button to display the status of connection. At anytime the user can press cancel button to abort the operation. Since the calls to cancel/abort are generally asynchronous the actual call to disconnect comes from a different STA thread. Now the problem I am facing is that the after the user clicks the cancel button the dialog is not getting disposed away and the thread is not stopping, thus my application hangs. If I attach a debugger to the release build of the application, the application breaks in the debugger with Invalid RtlHeapAddress. Initially I though it could be a problem of directly accessing my interface pointer, so I marshalled the interface pointer using GlobalInterfaceTable, yet the result is the same.

After some debugging I found that the call to Connect is not returning at all, to be on a safer side I have a message loops in my all STA threads.

How do I make sure that my dialog is disposed properly and my STA thread also stops properly.

I am using VC++ 6.0 for developing my application. The COM part is implemented using pure C++

Thanks
QuestionATL Service Pin
Ashwin kumar Gurujala31-Aug-05 21:42
Ashwin kumar Gurujala31-Aug-05 21:42 
AnswerRe: ATL Service Pin
logicaldna31-Aug-05 22:47
logicaldna31-Aug-05 22:47 
QuestionExcel late binding Pin
Anonymous31-Aug-05 21:21
Anonymous31-Aug-05 21:21 
QuestionSOAP quetsion Pin
logicaldna31-Aug-05 19:03
logicaldna31-Aug-05 19:03 
QuestionHow to specify a sound card in windows media player Pin
JaniceA29-Aug-05 23:08
JaniceA29-Aug-05 23:08 
QuestionReally struggling with GetTypeFromProgID Pin
DaveC42691329-Aug-05 8:11
DaveC42691329-Aug-05 8:11 
GeneralRe: Really struggling with GetTypeFromProgID Pin
Jörgen Sigvardsson29-Aug-05 9:00
Jörgen Sigvardsson29-Aug-05 9:00 
GeneralRe: Really struggling with GetTypeFromProgID Pin
DaveC42691329-Aug-05 10:03
DaveC42691329-Aug-05 10:03 
GeneralRe: Really struggling with GetTypeFromProgID Pin
Jörgen Sigvardsson29-Aug-05 19:53
Jörgen Sigvardsson29-Aug-05 19:53 
GeneralRe: Really struggling with GetTypeFromProgID Pin
DaveC42691330-Aug-05 2:59
DaveC42691330-Aug-05 2:59 
QuestionActiveX Control's Bitmaps in ToolBox Pin
Ashwin kumar Gurujala27-Aug-05 1:53
Ashwin kumar Gurujala27-Aug-05 1:53 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Jörgen Sigvardsson27-Aug-05 13:22
Jörgen Sigvardsson27-Aug-05 13:22 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Ashwin kumar Gurujala28-Aug-05 19:55
Ashwin kumar Gurujala28-Aug-05 19:55 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Jörgen Sigvardsson29-Aug-05 9:16
Jörgen Sigvardsson29-Aug-05 9:16 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Ashwin kumar Gurujala1-Sep-05 1:37
Ashwin kumar Gurujala1-Sep-05 1:37 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Jörgen Sigvardsson1-Sep-05 9:48
Jörgen Sigvardsson1-Sep-05 9:48 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Ashwin kumar Gurujala9-Sep-05 0:02
Ashwin kumar Gurujala9-Sep-05 0:02 

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.