RE: System.Array of COM objects cannot be released?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 07/23/04


Date: Fri, 23 Jul 2004 08:13:45 GMT

Hi Frank,

The code snippet looks fine, to my understanding calling ReleaseComObject
until = 0 will release all the reference to the RCW wrapper object and call
IUnknown::Release on the COM Interface. Does this unit test get passed if
written in C++ or VB6?

If so, I'd like to know more detail about the COM component to further
investigate this issue. Could you post how you get the array of COM Objects
back ? I'd also like to have a look at the IDL definition of that method
that returns an array of COM objects. If there is any other code related
in this test, please let me know.

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.



Relevant Pages

  • Array Problem
    ... I thought I understood how to traverse an array, but I guess I was wrong. ... have tried writing the code snippet below as: while, for, foreach... ... If it is <= $maxLength do nothing, ...
    (alt.php)
  • Array Problem
    ... I thought I understood how to traverse an array, but I guess I was wrong. ... have tried writing the code snippet below as: while, for, foreach... ... If it is <= $maxLength do nothing, ...
    (comp.lang.php)
  • RE: Tablestyle.Add too slow...
    ... To begin investigating this issue, I'd first like to get a timing result of ... this code snippet. ... timing result if you bound the datagrid and set tablestyle in seperate ... before sending mail. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Workbooks collection is empty even though the some of the document is open
    ... used in VB/A to return, say, an array of object ref's to all Excel ... Peter T ... > your code snippet and see if I can help you with it. ...
    (microsoft.public.excel.programming)
  • Re: Array Problem
    ... > I thought I understood how to traverse an array, but I guess I was wrong. ... > have tried writing the code snippet below as: ...
    (alt.php)