Pete Posted October 4, 2007 Report Share Posted October 4, 2007 If I draw a polygon from the annotations toolbar, the lines don't really appear where I expect them. Then it appears the exception occurs when the cursor intersects the starting point of the polygon. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at ChartFX.NetIEClient.Annotation.AnnotationPolygon.IntPaint(IGraphicsEx gx, Boolean hitTest, Rectangle r) at ChartFX.NetIEClient.Annotation.AnnotationObject.a(Point A_0) at ChartFX.NetIEClient.Annotation.AnnotationList.a(Point A_0, HitFlag& A_1) at ChartFX.NetIEClient.Annotation.Annotations.HitTest(Int32 x, Int32 y) at ChartFX.NetIEClient.Annotation.Annotations.b(MouseEventArgs A_0) --- End of inner exception stack trace --- 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.NetIEClient.ExtensionCollection.a(w A_0, Enum A_1, Object[] A_2) at ChartFX.NetIEClient.ao.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- PowerTeam.VersionDetect Assembly Version: 1.1.0.0 Win32 Version: n/a CodeBase: http://localhost:1930/PowerTeam.VersionDetect.DLL ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll ---------------------------------------- Microsoft.mshtml Assembly Version: 7.0.3300.0 Win32 Version: 7.0.3300.0 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll ---------------------------------------- ChartFX.NetIEClient Assembly Version: 7.0.2664.18534 Win32 Version: n/a CodeBase: http://localhost:1930/chartfx70/download/ChartFX.NetIEClient.dll ---------------------------------------- ChartFX.NetIEClient.Base Assembly Version: 7.0.2664.18353 Win32 Version: n/a CodeBase: http://localhost:1930/chartfx70/download/ChartFX.NetIEClient.Base.DLL ---------------------------------------- ChartFX.NetIEClient.Adornments Assembly Version: 7.0.2664.18381 Win32 Version: n/a CodeBase: http://localhost:1930/chartfx70/download/ChartFX.NetIEClient.Adornments.DLL ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ChartFX.NetIEClient.Annotation Assembly Version: 7.0.2664.18782 Win32 Version: n/a CodeBase: http://localhost:1930/chartfx70/download/ChartFX.NetIEClient.Annotation.DLL ---------------------------------------- ChartFX.NetIEClient.Statistical Assembly Version: 7.0.2664.18835 Win32 Version: n/a CodeBase: http://localhost:1930/chartfx70/download/ChartFX.NetIEClient.Statistical.DLL ---------------------------------------- System.Design Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Drawing.Design Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll ---------------------------------------- System.Web Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. Quote Link to comment Share on other sites More sharing options...
Frank Posted October 17, 2007 Report Share Posted October 17, 2007 We are unable to reproduce this problem. Please attach an application or sample code that reproduces it. Quote Link to comment Share on other sites More sharing options...
peterz Posted April 24, 2008 Report Share Posted April 24, 2008 I am able to show this problem consistently. WinXP Pro SP2, VS2005. Running on a VMware virtual machine if that makes a differnece. Code is below: 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...
bmowrey Posted May 12, 2009 Report Share Posted May 12, 2009 Did they ever fix this? I am seeing the same problem. Quote Link to comment Share on other sites More sharing options...
AndreG Posted May 13, 2009 Report Share Posted May 13, 2009 This has been fixed. I was able to reproduce before, but not with the latest service pack. Please upgrade at http://support.softwarefx.com/ProductBase.aspx?Product=CfxNet70 P.S.:Please make sure you post on the right forums. This one is for Webforms. 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.