Neal,
I normally see that when I call
System.Runtime.InteropServices.Marshal.ReleaseComObject on an COM variable,
then attempt to call a method of that COM variable.
Remember if you call ReleaseComObject on one variable and that variable
refers to the same instance as a second variable, both variables are
invalidated...
Hope this helps
Jay
"Neal Miller" <neal @ milsys.com> wrote in message
news:CC6AB361-26CC-4FC0-801D-(E-Mail Removed)...
> Hi all,
>
> I've gotten this error:
>
> Err# 5 COM object that has been separated from its underlying
RCW can not be used.
>
> I have researched this some, and have discovered that it has something to
do with the threading model used by the app.
>
> My VB.NET app is using LeadTools COM objects. This error occurs when the
form that contains the LeadTools control is first opened, then closed, then
the above error consistently appears during the re-opening of the given
form.
>
> I need some help in order to avoid running into this error.
>
> Any assistance would be appreciated.
>
> Thanks,
>
> Neal
|