Click here to Skip to main content
15,893,486 members
Home / Discussions / COM
   

COM

 
AnswerRe: plugin for Mozilla Pin
User 2155978-Jul-07 18:19
User 2155978-Jul-07 18:19 
Questionwebservice Pin
brsecu6-Jul-07 3:39
brsecu6-Jul-07 3:39 
AnswerRe: webservice Pin
Thomas Chester9-Jul-07 8:04
Thomas Chester9-Jul-07 8:04 
Questionwhat should i do? Pin
eraccn5-Jul-07 17:30
eraccn5-Jul-07 17:30 
QuestionCall function in remote DLL Pin
Dimkov5-Jul-07 8:06
Dimkov5-Jul-07 8:06 
QuestionATL wizard not adding Get and Put function prototypes to the class definition. Pin
KASR15-Jul-07 1:24
KASR15-Jul-07 1:24 
Questionintegrating COM in a XBAP wpf application Pin
elkev4-Jul-07 22:34
elkev4-Jul-07 22:34 
Questiontimeout breaks object descruction Pin
sdevil13-Jul-07 9:45
sdevil13-Jul-07 9:45 
Hello

I have developed a COM server using attributed ATL with VS8. The objects are instantiated and used within a C# .NET Windows Forms application. When shutting down the application not all FinalRelease() methods of all objects can execute completely. I can make this behaviour constant by placing a call to Sleep(5000) at the beginning of the FinalRelease() method, the execution will never reach the next statement.

The debugger says at this point that the lowest frame on the call stack is "[In a sleep, wait or join]" (independently from the additional Sleep() call that is not executed at this time).

I think it is related to the threading model of my COM objects (apartment). Someone (I don't know exactly who) waits an amount of time for my objects to terminate and then forces termination. But I don't want this behaviour! How can I disable that or set the timeout to another value? (I'd prefer INFINITE!)

What is the reason for the described behaviour? How can I solve the problem without adding cleanup functions that are called before any descruction code? (I thought FinalRelease() is actually such a cleanup function Confused | :confused: )

Best regards
Steve
AnswerRe: timeout breaks object descruction Pin
Mike Dimmick14-Jul-07 7:00
Mike Dimmick14-Jul-07 7:00 
QuestionWhy we need COM? Pin
Nandu_77b3-Jul-07 1:22
Nandu_77b3-Jul-07 1:22 
AnswerRe: Why we need COM? Pin
Steve S3-Jul-07 2:12
Steve S3-Jul-07 2:12 
GeneralRe: Why we need COM? Pin
Nandu_77b3-Jul-07 4:26
Nandu_77b3-Jul-07 4:26 
GeneralRe: Why we need COM? Pin
Steve S4-Jul-07 1:53
Steve S4-Jul-07 1:53 
AnswerRe: Why we need COM? Pin
CPallini3-Jul-07 2:17
mveCPallini3-Jul-07 2:17 
GeneralRe: Why we need COM? Pin
Nandu_77b3-Jul-07 5:50
Nandu_77b3-Jul-07 5:50 
AnswerRe: Why we need COM? Pin
Michael Dunn4-Jul-07 13:39
sitebuilderMichael Dunn4-Jul-07 13:39 
QuestionActiveX Pin
Anil K P1-Jul-07 22:52
Anil K P1-Jul-07 22:52 
Questionunderstanding COM Pin
KASR11-Jul-07 21:32
KASR11-Jul-07 21:32 
AnswerRe: understanding COM Pin
CPallini1-Jul-07 22:01
mveCPallini1-Jul-07 22:01 
QuestionNot able to create folders on exchange 2003 on Windows 2003 Pin
kaushik_Manoj1-Jul-07 19:11
kaushik_Manoj1-Jul-07 19:11 
QuestionHow to datas import in Grd to Excel sheet Pin
Ranjith Joseph Selvaraj29-Jun-07 23:47
Ranjith Joseph Selvaraj29-Jun-07 23:47 
QuestionSetting computer name with WMI Pin
one-trick-pony29-Jun-07 7:07
one-trick-pony29-Jun-07 7:07 
Questionusing asp.net2.0, in case of Gridview control if we dont use Sqldatasource control ,can we use inbuilt edit update.. functionality? Pin
yogita charhate28-Jun-07 23:29
yogita charhate28-Jun-07 23:29 
QuestionMulti threading in c++ [modified] Pin
role127-Jun-07 20:25
role127-Jun-07 20:25 
AnswerRe: Multi threading in c++ Pin
Jürgen Jung1-Jul-07 21:26
Jürgen Jung1-Jul-07 21:26 

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.