peterz Posted April 29, 2008 Report Share Posted April 29, 2008 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() Quote Link to comment Share on other sites More sharing options...
peterz Posted May 29, 2008 Author Report Share Posted May 29, 2008 Any of the CFX support folks able to reproduce this? My environment is xp pro sp2, vs 2008, ChartFX.WinForms.dll version 7.0.2893.24916 Thanks for any help. Quote Link to comment Share on other sites More sharing options...
Frank Posted May 29, 2008 Report Share Posted May 29, 2008 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). Quote Link to comment Share on other sites More sharing options...
peterz Posted May 29, 2008 Author Report Share Posted May 29, 2008 Thanks for the prompt reply Frank. Any idea when the next servie pack will be out? I am very close to release and wnat to know if I should wait for the fixed version. Thx. Quote Link to comment Share on other sites More sharing options...
Frank Posted May 29, 2008 Report Share Posted May 29, 2008 There is nothing that will prompt a service pack at this time (no priority 1 bugs and the number of priority 2 bugs that have been fixed is very small) so at this time I can't give you an estimate. The HotFix you can get right away. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.