Page 1 of 1

line series type bug?

Posted: Tue Sep 19, 2006 2:09 pm
by 9641906
I have BIG problems with the line series type:

When I enter the tchart editor and change the appearence of the subject line (pure line versus line with pointers or vice versa) - the form shuts down with the error message below.

If, on the other hand, I generate a fastline from code, and then via the tchart editor changes this to a line with pointers (which I assume also changes the series type from fastline to line) - everything works as it's supposed.

Is there a solution to this?













System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="TeeChart"
StackTrace:
at Steema.TeeChart.Styles.Custom.CheckPointInLine(Point P, Int32 tmpX, Int32 tmpY, Int32 OldXPos, Int32 OldYPos)
at Steema.TeeChart.Styles.Custom.Clicked(Int32 x, Int32 y)
at Steema.TeeChart.Tools.DragPoint.ClickedSeries(Int32 x, Int32 y)
at Steema.TeeChart.Tools.DragPoint.MouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
at Steema.TeeChart.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
at Steema.TeeChart.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e)
at Steema.TeeChart.TChart.OnMouseMove(MouseEventArgs e)
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.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at Spring.formMain.toolStripMenuItemNewTarget_Click(Object sender, EventArgs e) in C:\Documents and Settings\Bernt R\My Documents\Visual Studio 2005\Projects\Spring v06\formMain.cs:line 263
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripItem.OnDoubleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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 Spring.formMain.Main() in C:\Documents and Settings\Bernt R\My Documents\Visual Studio 2005\Projects\Spring v06\formMain.cs:line 121
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()

Posted: Tue Sep 19, 2006 2:19 pm
by narcis
Hi BerntR,

Could you please send us an example we can run "as-is" to reproduce the problem here and let us know which TeeChart version are you using?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.

Posted: Tue Sep 19, 2006 7:38 pm
by 9641906
narcis wrote:Hi BerntR,

Could you please send us an example we can run "as-is" to reproduce the problem here and let us know which TeeChart version are you using?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.

It's done

Posted: Wed Sep 20, 2006 7:54 am
by narcis
Hi BerntR,

I'm not able to reproduce the problem you report. With the example you posted I open the chart editor, select Series tab, select Point tab and enable Visible checkbox. This makes the seriesp ointers visibles and the error doesn't appear. Which steps should I follow to reproduce the issue here?

Thanks in advance.

Posted: Wed Sep 20, 2006 9:36 am
by 9641906
editor -> chart tab -> change button ->

(if a dotted line is displayed, change to flush line)
(if a flush line is displayed, change to a dotted line)

Posted: Wed Sep 20, 2006 10:11 am
by narcis
Hi BerntR,

I'm still not able to reproduce this problem using the project you sent nor using our current TeeChart sources.

We expect to have a new maintenance release ready before the end of this week. Would you be so kind to wait for this release and check if it works fine for you?

BTW: Be aware at this forum for the release announcement.

Thanks in advance.

Posted: Wed Sep 20, 2006 12:20 pm
by 9641906
I can wait.


Thanks for looking into it.