Click here to Skip to main content
15,898,770 members
Home / Discussions / COM
   

COM

 
QuestionUsing NULL to Close the DB connection after Close() Pin
ragavan20-Aug-07 20:43
ragavan20-Aug-07 20:43 
AnswerRe: Using NULL to Close the DB connection after Close() Pin
myshketer21-Aug-07 21:44
myshketer21-Aug-07 21:44 
QuestionLosing COM events handler in C# client [modified] Pin
Vitaly Tomilov20-Aug-07 0:15
Vitaly Tomilov20-Aug-07 0:15 
AnswerRe: Losing COM events handler in C# client Pin
User 21559720-Aug-07 0:52
User 21559720-Aug-07 0:52 
GeneralRe: Losing COM events handler in C# client Pin
Vitaly Tomilov20-Aug-07 1:28
Vitaly Tomilov20-Aug-07 1:28 
AnswerRe: Losing COM events handler in C# client Pin
Vitaly Tomilov20-Aug-07 1:27
Vitaly Tomilov20-Aug-07 1:27 
QuestionRe: Losing COM events handler in C# client Pin
ranu mandan5-Sep-08 3:23
ranu mandan5-Sep-08 3:23 
AnswerRe: Losing COM events handler in C# client Pin
Vitaly Tomilov5-Sep-08 3:35
Vitaly Tomilov5-Sep-08 3:35 
Do you want to replicate the problem i had or to solve the problem? Smile | :)

This problem came to me a while ago, i posted it on Microsoft, they recognized the problem and said that the workaround that i came up with myself was the rigth way, which sounded kind-of bad.

Anyways, if you have a property that exposes COM events, you need to declare a global variable of the property type, then set the variable from the beginning, and only then attach events to your global variable. You cannot attach events directly to a property that exposes events, because such event attachment gets automatically garbaged by .NET after some time, so you stop receiving events permanently.

Regards,
Vitaly

Professional System Library on www.prosyslib.org

GeneralRe: Losing COM events handler in C# client Pin
ranu mandan7-Sep-08 22:34
ranu mandan7-Sep-08 22:34 
Questionjavascript menu on masterpage and dropdown list on contentpage problem in IE Pin
swapnilek17-Aug-07 4:50
swapnilek17-Aug-07 4:50 
AnswerRe: javascript menu on masterpage and dropdown list on contentpage problem in IE Pin
help as an alias20-Aug-07 18:29
help as an alias20-Aug-07 18:29 
QuestionGetInterfaceFromGlobal() hanging Pin
simon heffer15-Aug-07 3:42
simon heffer15-Aug-07 3:42 
AnswerRe: GetInterfaceFromGlobal() hanging Pin
Vitaly Tomilov20-Aug-07 0:40
Vitaly Tomilov20-Aug-07 0:40 
QuestionAccess Is Denied Error Pin
Captain Trips14-Aug-07 4:44
Captain Trips14-Aug-07 4:44 
AnswerRe: Access Is Denied Error Pin
User 21559715-Aug-07 0:13
User 21559715-Aug-07 0:13 
Questionc++ managed wrapper class for unmanaged class Pin
Pankaj.Jain13-Aug-07 23:52
professionalPankaj.Jain13-Aug-07 23:52 
QuestionPDF from HTML content Pin
Rajkamal_dfine13-Aug-07 18:24
Rajkamal_dfine13-Aug-07 18:24 
QuestionUrgent Help !! In certifcate enrollment in Windows CA using C# ( XENROLL.dll) Pin
fireline108213-Aug-07 7:47
fireline108213-Aug-07 7:47 
QuestionPrintPreview Implementation Pin
Rakesh__Patil12-Aug-07 19:03
Rakesh__Patil12-Aug-07 19:03 
Questionproblem About DCOM on Windows 2003 Server Pin
kcynic11-Aug-07 16:47
kcynic11-Aug-07 16:47 
QuestionShow/hide deskband ? Pin
vilius_m11-Aug-07 10:44
vilius_m11-Aug-07 10:44 
QuestionCom Interop Error ?WMI query language not supported? Pin
Blizzardice10-Aug-07 12:23
Blizzardice10-Aug-07 12:23 
QuestionWhat is difference between BSTR, CComBSTR, _bstr_t Pin
Nandu_77b10-Aug-07 5:00
Nandu_77b10-Aug-07 5:00 
AnswerRe: What is difference between BSTR, CComBSTR, _bstr_t Pin
Michael Dunn10-Aug-07 14:58
sitebuilderMichael Dunn10-Aug-07 14:58 
QuestionAdvantage of COM Pin
Nandu_77b10-Aug-07 2:40
Nandu_77b10-Aug-07 2:40 

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.