<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CWGraph Problems in VB.Net? in Measurement Studio for .NET Languages</title>
    <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33862#M2</link>
    <description>I might be wrong, but I think component works uses&lt;BR /&gt;the mfc42.dll and vb.net uses mfc70.dll&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Curt &lt;BR /&gt;</description>
    <pubDate>Wed, 30 Jan 2002 23:05:38 GMT</pubDate>
    <dc:creator>Curt_C</dc:creator>
    <dc:date>2002-01-30T23:05:38Z</dc:date>
    <item>
      <title>CWGraph Problems in VB.Net?</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33861#M1</link>
      <description>We are trying Measurement Studio with VB.Net. It seems to work fine except for 1 condition we have found.&lt;BR /&gt;&lt;BR /&gt;The CWGraph works well until you leave it alone for a few minutes. Then it seems that part of the object gets corrupted. It almost appears that part of the control is getting overwritten. The time span might indicate that the garbage collector is involved.  &lt;BR /&gt;&lt;BR /&gt;When I look at the problem in the debugger it states &lt;BR /&gt;&lt;BR /&gt;"error: cannot obtain value" &lt;BR /&gt;&lt;BR /&gt;and the .Net error handling states:&lt;BR /&gt;&lt;BR /&gt;System.Reflection.TargetException: Object does not match target type&lt;BR /&gt;&lt;BR /&gt;Anybody hear of anything like this?&lt;BR /&gt;&lt;BR /&gt;Here is what the CWGraph control looks like when it is corrupted:&lt;BR /&gt;&lt;BR /&gt;-	AxCWGraph1	{AxCWUIControlsLib.AxCWGraph}	AxCWUIControlsLib.AxCWGraph&lt;BR /&gt;+	System.Windows.Forms.AxHost	{AxCWUIControlsLib.AxCWGraph}	System.Windows.Forms.AxHost&lt;BR /&gt;+	ocx	{System.__ComObject}	CWUIControlsLib._DCWGraph&lt;BR /&gt;+	eventMulticaster	{AxCWUIControlsLib.AxCWGraphEventMulticaster}	AxCWUIControlsLib.AxCWGraphEventMulticaster&lt;BR /&gt;+	cookie	{System.Windows.Forms.AxHost.ConnectionPointCookie}	System.Windows.Forms.AxHost.ConnectionPointCookie&lt;BR /&gt;	CWBindingStatusUpdated	Nothing	AxCWUIControlsLib._DCWGraphEvents_CWBindingStatusUpdatedEventHandler&lt;BR /&gt;	CWBindingDataUpdated	Nothing	AxCWUIControlsLib._DCWGraphEvents_CWBindingDataUpdatedEventHandler&lt;BR /&gt;	ReadyStateChange	Nothing	System.EventHandler&lt;BR /&gt;	AnnotationMouseDown	Nothing	AxCWUIControlsLib._DCWGraphEvents_AnnotationMouseDownEventHandler&lt;BR /&gt;	AnnotationMouseUp	Nothing	AxCWUIControlsLib._DCWGraphEvents_AnnotationMouseUpEventHandler&lt;BR /&gt;	AnnotationMouseMove	Nothing	AxCWUIControlsLib._DCWGraphEvents_AnnotationMouseMoveEventHandler&lt;BR /&gt;	AnnotationChange	Nothing	AxCWUIControlsLib._DCWGraphEvents_AnnotationChangeEventHandler&lt;BR /&gt;	PlotAreaMouseUp	Nothing	AxCWUIControlsLib._DCWGraphEvents_PlotAreaMouseUpEventHandler&lt;BR /&gt;+	PlotAreaMouseMove	{AxCWUIControlsLib._DCWGraphEvents_PlotAreaMouseMoveEventHandler}	AxCWUIControlsLib._DCWGraphEvents_PlotAreaMouseMoveEventHandler&lt;BR /&gt;	PlotAreaMouseDown	Nothing	AxCWUIControlsLib._DCWGraphEvents_PlotAreaMouseDownEventHandler&lt;BR /&gt;	PlotMouseUp	Nothing	AxCWUIControlsLib._DCWGraphEvents_PlotMouseUpEventHandler&lt;BR /&gt;	PlotMouseMove	Nothing	AxCWUIControlsLib._DCWGraphEvents_PlotMouseMoveEventHandler&lt;BR /&gt;	PlotMouseDown	Nothing	AxCWUIControlsLib._DCWGraphEvents_PlotMouseDownEventHandler&lt;BR /&gt;	CursorMouseDown	Nothing	AxCWUIControlsLib._DCWGraphEvents_CursorMouseDownEventHandler&lt;BR /&gt;	CursorMouseUp	Nothing	AxCWUIControlsLib._DCWGraphEvents_CursorMouseUpEventHandler&lt;BR /&gt;	CursorMouseMove	Nothing	AxCWUIControlsLib._DCWGraphEvents_CursorMouseMoveEventHandler&lt;BR /&gt;+	CursorChange	{AxCWUIControlsLib._DCWGraphEvents_CursorChangeEventHandler}	AxCWUIControlsLib._DCWGraphEvents_CursorChangeEventHandler&lt;BR /&gt;	KeyUpEvent	Nothing	AxCWUIControlsLib._DCWGraphEvents_KeyUpEventHandler&lt;BR /&gt;	KeyPressEvent	Nothing	AxCWUIControlsLib._DCWGraphEvents_KeyPressEventHandler&lt;BR /&gt;	KeyDownEvent	Nothing	AxCWUIControlsLib._DCWGraphEvents_KeyDownEventHandler&lt;BR /&gt;+	MouseDownEvent	{AxCWUIControlsLib._DCWGraphEvents_MouseDownEventHandler}	AxCWUIControlsLib._DCWGraphEvents_MouseDownEventHandler&lt;BR /&gt;+	MouseUpEvent	{AxCWUIControlsLib._DCWGraphEvents_MouseUpEventHandler}	AxCWUIControlsLib._DCWGraphEvents_MouseUpEventHandler&lt;BR /&gt;+	MouseMoveEvent	{AxCWUIControlsLib._DCWGraphEvents_MouseMoveEventHandler}	AxCWUIControlsLib._DCWGraphEvents_MouseMoveEventHandler&lt;BR /&gt;	DblClick	Nothing	System.EventHandler&lt;BR /&gt;+	ClickEvent	{System.EventHandler}	System.EventHandler&lt;BR /&gt;	Enabled	error: cannot obtain value	Boolean&lt;BR /&gt;	PlotAreaColor	error: cannot obtain value	System.Drawing.Color&lt;BR /&gt;	PlotAreaImage	error: cannot obtain value	CWUIControlsLib.CWPictureDisp&lt;BR /&gt;	TrackMode	error: cannot obtain value	CWUIControlsLib.CWGraphTrackModes&lt;BR /&gt;	Font	error: cannot obtain value	System.Drawing.Font&lt;BR /&gt;	PlotTemplate	error: cannot obtain value	CWUIControlsLib.CWPlot&lt;BR /&gt;	ChartStyle	error: cannot obtain value	CWUIControlsLib.CWChartStyles&lt;BR /&gt;	ChartLength	error: cannot obtain value	Integer&lt;BR /&gt;	GraphFrameImage	error: cannot obtain value	CWUIControlsLib.CWPictureDisp&lt;BR /&gt;	GraphFrameColor	error: cannot obtain value	System.Drawing.Color&lt;BR /&gt;	ImmediateUpdates	error: cannot obtain value	Boolean&lt;BR /&gt;	Caption	error: cannot obtain value	String&lt;BR /&gt;	BackColor	error: cannot obtain value	System.Drawing.Color&lt;BR /&gt;	ReadyState	error: cannot obtain value	Integer&lt;BR /&gt;	Windowless	error: cannot obtain value	Boolean&lt;BR /&gt;	CaptionColor	error: cannot obtain value	System.Drawing.Color&lt;BR /&gt;	KeyboardMode	error: cannot obtain value	CWUIControlsLib.CWKeyboardModes&lt;BR /&gt;	DefaultxInc	error: cannot obtain value	Double&lt;BR /&gt;	DefaultxFirst	error: cannot obtain value	Double&lt;BR /&gt;	DefaultPlotPerRow	error: cannot obtain value	Boolean&lt;BR /&gt;	YDataAppend	error: cannot obtain value	Object&lt;BR /&gt;	XYDataAppend	error: cannot obtain value	Object&lt;BR /&gt;	YData	error: cannot obtain value	Object&lt;BR /&gt;	XYData	error: cannot obtain value	Object&lt;BR /&gt;	GraphFrameStyle	error: cannot obtain value	CWUIControlsLib.CWGraphFrameStyles&lt;BR /&gt;	AnnotationTemplate	error: cannot obtain value	CWUIControlsLib.CWAnnotation&lt;BR /&gt;	Plots	error: cannot obtain value	CWUIControlsLib.CWPlots&lt;BR /&gt;	Axes	error: cannot obtain value	CWUIControlsLib.CWAxes&lt;BR /&gt;	Cursors	error: cannot obtain value	CWUIControlsLib.CWCursors&lt;BR /&gt;	CWBindings	error: cannot obtain value	CWUIControlsLib.CWBindings&lt;BR /&gt;	Annotations	error: cannot obtain value	CWUIControlsLib.CWAnnotations&lt;BR /&gt;	TraceType	Actual	Agilent.LWD.Ag86038x.UserInterface.ucODAGraph.TraceType&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2002 18:51:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33861#M1</guid>
      <dc:creator>Roadkill</dc:creator>
      <dc:date>2002-01-30T18:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: CWGraph Problems in VB.Net?</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33862#M2</link>
      <description>I might be wrong, but I think component works uses&lt;BR /&gt;the mfc42.dll and vb.net uses mfc70.dll&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Curt &lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2002 23:05:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33862#M2</guid>
      <dc:creator>Curt_C</dc:creator>
      <dc:date>2002-01-30T23:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: CWGraph Problems in VB.Net?</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33863#M3</link>
      <description>Therefore, your surmising that the CWGraph is incompatible with VB.Net. &lt;BR /&gt;&lt;BR /&gt;Correct? &lt;BR /&gt;&lt;BR /&gt;Has National Instruments released any information with regard to VB.Net? &lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2002 00:50:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33863#M3</guid>
      <dc:creator>Roadkill</dc:creator>
      <dc:date>2002-01-31T00:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: CWGraph Problems in VB.Net?</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33864#M4</link>
      <description>The graph control does use mfc42.dll, but there is no relationship between VB.NET and mfc70.dll.&lt;BR /&gt;&lt;BR /&gt;Could you please provide more information about what you're doing in your application?  For example, is the graph left alone for a few minutes or is data periodically getting charted/plotted to the graph?  Are you handling any of the graph's events?  Are you using bindings, and if so, what properties are you binding to?  What other settings have you set on the graph?  Can you reproduce this in a smaller application and if so, what are the minimum steps that it takes to create a project that reproduces this problem?&lt;BR /&gt;&lt;BR /&gt;- Elton &lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2002 04:50:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33864#M4</guid>
      <dc:creator>Elton Wells</dc:creator>
      <dc:date>2002-01-31T04:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: CWGraph Problems in VB.Net?</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33865#M5</link>
      <description>Found the problem. &lt;BR /&gt;&lt;BR /&gt;It was a problem on how we were implementing threads and event handling in VB.Net(use invoke instead of raise event!). CWgraph is working perfectly now.&lt;BR /&gt;&lt;BR /&gt;Thanks. &lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2002 17:48:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/CWGraph-Problems-in-VB-Net/m-p/33865#M5</guid>
      <dc:creator>Roadkill</dc:creator>
      <dc:date>2002-02-01T17:48:19Z</dc:date>
    </item>
  </channel>
</rss>

