Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > .NET WinForms > General Discussion
  New Posts New Posts RSS Feed - Xtreme TreeView 16.4 error in VS.NEt 2013
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Xtreme TreeView 16.4 error in VS.NEt 2013

 Post Reply Post Reply
Author
Message
oquesada View Drop Down
Newbie
Newbie


Joined: 21 July 2015
Location: Costa Rica
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote oquesada Quote  Post ReplyReply Direct Link To This Post Topic: Xtreme TreeView 16.4 error in VS.NEt 2013
    Posted: 10 August 2016 at 9:56pm
I have a treeview inside a VB.NET form, however, as soon as the form is closed and the Main() methods finishes I get the following exception:

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

If the treeview.nodes.Add() method is executed (to add nodes) the exception is thrown. If I Comment out that single line, the exception is not thrown.


Any idea?


There's no source code. The entire exception says:

A first chance exception of type 'System.Runtime.InteropServices.InvalidComObjectException' occurred in Unknown Module.
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ClinicTracker.vshost.exe</AppDomain><Exception><ExceptionType>System.Runtime.InteropServices.InvalidComObjectException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>COM object that has been separated from its underlying RCW cannot be used.</Message><StackTrace>   at System.StubHelpers.StubHelpers.StubRegisterRCW(Object pThis)
   at System.Windows.Forms.UnsafeNativeMethods.IOleInPlaceObject.GetWindow(IntPtr&amp; hwnd)
   at System.Windows.Forms.AxHost.WndProc(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.
   at System.StubHelpers.StubHelpers.StubRegisterRCW(Object pThis)
   at System.Windows.Forms.UnsafeNativeMethods.IOleInPlaceObject.GetWindow(IntPtr&amp; hwnd)
   at System.Windows.Forms.AxHost.WndProc(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString></Exception></TraceRecord>
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.