Jump to content
Software FX Community

Polygon problem


peterz
 Share

Recommended Posts

When using the annotation toolbar and trying to draw a polygon, I can generate an exception. The below code is sufficienct to demostrate the issue. Exception output is below the code.   public Form1()   {   InitializeComponent();

  chart1.ToolBar.Visible = true;   chart1.LegendBox.Visible = true;   chart1.DataGrid.ReadOnly = false;  // allow data changes   chart1.AllowDrag = true;  // allow data changes by dragging points

  // this adds the annotations toolbar   Annotations annotations = new Annotations();   annotations.EnableUI = true;   annotations.ToolBar.Visible = true;   chart1.Extensions.Add(annotations);   }Here are the steps to generate the crash:- run the sample app attached- press the polygon toolbar button- cursor is a cross hairs- click on the chart area and release the mouse button (don't drag)- move the mouse and click again (no drag)- I get the below:

System.Reflection.TargetInvocationException was unhandled  Message="Exception has been thrown by the target of an invocation."  Source="mscorlib"  StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at ChartFX.WinForms.ExtensionCollection.a(d A_0, Enum A_1, Object[] A_2) at ChartFX.WinForms.ag.f(MouseEventArgs A_0) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at Cfx7TestApp.Program.Main() in C:\_Data\Test Code\Cfx7TestApp\Cfx7TestApp\Program.cs:line 17 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 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

  • 5 weeks later...

Thank you for your feedback.

The bug has been fixed internally but the fix has not been made available yet. I will make sure it is included in the next HotFix and Service Pack. Please contact tech. support for early access to these bits (which will be available overnight).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...