Re: Getting: COM object that has been separated from its underlying RCW can not be used.

From: Tom Shelton (tom_at_mtogden.com)
Date: 04/05/04


Date: Mon, 05 Apr 2004 02:04:44 -0700

On 2004-04-05, Steen Tøttrup <never@mind.com> wrote:
>
> I'm working with System.Management (my guess is that it is using InterOp to
> use the "old" WMI classes), and suddently I start getting this error:
>
> COM object that has been separated from its underlying RCW can not be used.
>
> Why is that?? The methods that fail are called from a windows service.
>
> TIA, best regards,
> Steen

What version of the runtime? I think in 1.0, if you didn't access an
object for a certain period of time, the object would be released and
you would get this error... I think that was fixed in 1.1.

-- 
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
If you put it off long enough, it might go away.


Relevant Pages

  • Getting: COM object that has been separated from its underlying RCW can not be used.
    ... I'm working with System.Management (my guess is that it is using InterOp to ... use the "old" WMI classes), and suddently I start getting this error: ... TIA, best regards, ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Windows Service with COM interop
    ... interop assembly using the keycontainer or keyfile options. ... you will have the process running, and not doing much of anything at other ... > Is it possible to make a Windows Service that has a COM interop. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code Access Security
    ... but you don't actually do any interop? ... Regards ... I do have a reference (Imports) to System.Runtime.InteropServices in ... I only added that reference as I saw it in the help files from Microsoft ...
    (microsoft.public.dotnet.framework)
  • Windows Service with COM interop
    ... Is it possible to make a Windows Service that has a COM interop. ... I want to synchronize my database and ISA server blocklist. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how can i call C# method in c++ code?
    ... vc++ COM client, that is, you use COM interop. ... You create a mixed native/managed C++ wrapper class using VS2005's ...
    (microsoft.public.dotnet.languages.csharp)