Jump to content
Software FX Community

Chart FX Guage Trial Edt Exception


Recommended Posts

 Just downloaded Chart FX Guage (Trial Edt) and dropped into a new project. When I run the program the following error is generated at runtime.  Doesn't matter which control I use the same behavior is produced. 

Environment: Visual Studio 2005

Language: C#

Any ideas??

 System.InvalidOperationException was unhandled

  Message="It has been detected that the gauge was modified outside its UI-thread. Marshalling the execution of your code onto the UI thread in the Windows Forms environment is critical to prevent cross-thread usage of UI code. Use InvokeRequired/Invoke for for synchronous marshalling. Use InvokeRequired/BeginInvoke for asynchronous marshalling."

  Source="System.Windows.Forms"

  StackTrace:

at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)

at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)

at ChartFX.WinForms.Gauge.BaseGauge.a()

at ChartFX.WinForms.Gauge.BaseGauge.OnInvalidated(InvalidateEventArgs e)

at System.Windows.Forms.Control.NotifyInvalidate(Rectangle invalidatedArea)

at System.Windows.Forms.Control.Invalidate(Rectangle rc, Boolean invalidateChildren)

at System.Windows.Forms.Control.Invalidate(Rectangle rc)

at System.Windows.Forms.Control.OnParentInvalidated(InvalidateEventArgs e)

at System.Windows.Forms.Control.OnInvalidated(InvalidateEventArgs e)

at System.Windows.Forms.Control.NotifyInvalidate(Rectangle invalidatedArea)

at System.Windows.Forms.Control.Invalidate(Boolean invalidateChildren)

at System.Windows.Forms.Control.Invalidate()

at DevComponents.DotNetBar.RibbonBar.0W5(Object 83G, EventArgs 83H)

at DevComponents.DotNetBar.3E.3F.0Q2(EventArgs 7S8)

at DevComponents.DotNetBar.3E.0Q0()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

Link to comment
Share on other sites

Like all Windows Form Controls, Gauges is a single threaded control. The error is saying that you are invoking a method of the gauge from a thread that is different than the application's UI thread.

Please try the following:

1) Create a new Windows From application

2) Drop a Gauge

3) Run the app

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...