LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

COM Exception while using CWGraph controls

Hi,
 
I am trying to use activeX controls(AxInterop.CWUIControlsLib.dll, AxInterop.CW3DGraphLib.dll) provided by NI in my sample application (wriiten in C#) but I am receiving COM exceptions after the activeX controls gets instantiated.
 
Has anyone encountered such a problem before. Any help will be highly appreciated
0 Kudos
Message 1 of 3
(2,978 Views)
Can you elaborate a lil bit?
0 Kudos
Message 2 of 3
(2,970 Views)

I am trying to migrate a vb6.0 project which is using a CWGraph control to C# application. The installation of the vb6.0 application also adds cw3dgrph.ocx ,cw3dgrph.ocx and cwanalysis.ocx controls in System32 folder and I am referencing the same control in the C# application and trying to access the CWGraph control (C# itself creates the wrapper for this ActiveX controls:AxInterop.CW3DGraphLib,AxInterop.CWUIControlsLib,etc).

When I enable the CLRExceptions from the Debug menu in Visual studio and run the code , an unhandled exception of type COMException occurs without any description about th exception(it displays Unknown Error). everything runs fine if I disable the CLRException from debug menu.

0 Kudos
Message 3 of 3
(2,952 Views)