PC Review


Reply
Thread Tools Rate Thread

"COM object that has been separated from its underlying RCW cannot be used."

 
 
Steve
Guest
Posts: n/a
 
      19th Dec 2005
I've started getting this exception since installing vs2005

The code this is causing the exception is:
<code>
try
{
m_command.CommandText = GetAccessSprocString(m_spDeleteProtocol);
m_command.Parameters.Clear();
OleDbParameter param = new OleDbParameter("_protocolID",
protocol.ProtocolID);
m_command.Parameters.Add(param);

// open the connection and execute the update
m_connection.Open();
m_command.ExecuteNonQuery(); // THIS IS THE LINE THAT CAUSES
THE EXCEPTION
}
catch (OleDbException e)
{
m_log.LogError(e.Message, new StackFrame(true));
}
catch (Exception ee)
{
m_log.LogError(ee.Message, new StackFrame(true));
}
finally
{
m_connection.Close();
}
</code>


I honestly can't tell what is doing this. Googling hasn't shed much light.
Anyone know common causes for this exception?
Thanks for any help,
Steve


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
object that has been separated from its underlying RCW j Microsoft Outlook Program Addins 11 3rd Aug 2009 02:33 PM
COM object that has been separated from its underlying RCW Nagaraj Microsoft Outlook Program Addins 1 9th Apr 2009 02:29 PM
COM object that has been separated from its underlying RCW can not be used??? Marco Castro Microsoft VB .NET 2 9th Jan 2007 12:57 PM
COM object that has been separated from its underlying RCW... =?Utf-8?B?TWljaGFlbCBNYWVz?= Microsoft VB .NET 4 14th Nov 2006 06:43 PM
"COM object that has been separated from its underlying RCW cannot be used." Steve Microsoft C# .NET 2 21st Dec 2005 09:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.