Teechart.net? anybody used it and had problems?

P

Peter Row

Hi,

I know this may be a bit off topic since it is really a Teechart.net issue
but I am at my wits end, a total hair pulling to baldness moment.

I have a windows application that uses Teechart to plot several lines
(highly simplified but that's the jist of it). All is fine, the form that
this is on has buttons to allow you zoom in and out etc... However when the
user/developer starts scrolling about and zooming in/out things they get
NullReferenceException crashes. Here is the stack from a crash:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.ClipRectangle(Rectangle r)
at Steema.TeeChart.Drawing.Graphics3D.ClipRectangle(Int32 left, Int32
top, Int32 right, Int32 bottom)
at Steema.TeeChart.Drawing.Graphics3D.ClipCube(Rectangle rect, Int32
minZ, Int32 maxZ)
at Steema.TeeChart.Styles.Series.ClipRegionCreate(Boolean& ActiveRegion)
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at SystemThe thread '<No Name>' (0x16e8) has exited with code 0 (0x0).

The crash is really hard to reproduce. Some of the other developers in the
team never see the problem. I have tried using the source code for teechart
in my solution but it never stops on break points in the code indicated by
the stack above.

One way I use to reproduce the crash is to zoom in twice, and then alternate
between maximising and restoring the form hosting it until it crashes.
Sometimes I only have to max/restore the form once to cause the crash, other
times I have to do it 20 times.

I have tried various different versions of TeeChart.NET, running the debug
EXE of the application and then attaching the VS debugger to the process,
debugging the TeeChart source etc... etc...

I am using VS 2003 with v1.1 of the .NET runtime on XP Pro SP2, the language
used throughout is C#.
Anybody else have any problems with TeeChart when resizing?

Regards,
Peter
 
C

Chris Ireland

Hi Peter,

For future reference, you may care to visit Steema Software's Support
Central on http://support.steema.com for your TeeChart technical
issues.

I'm afraid to say that it looks like I'm one of the developers who are
unable to reproduce this problem, at least using a very simple TeeChart
project. Which version of TeeChart are you using? Can you post some
simple code with which you are able to reproduce the problem?

Best regards,
Christopher Ireland
Steema Software SL
http://www.steema.com
 
P

Peter Row

Hi,

Unfortunately as with all such things simple code always works.
I can't really post an example.

I was perhaps not the best person to ask this since I am not the
original developer. However as far as I know the TeeChart
website was no use at all and the latest version was being used.

The main crashing problem was solved by the original developer
by changing the TeeChart source code. However the client
has supposedly found another crashing problem, 8-(.

Regards,
Peter

Any how the main crash is out of the way
 
R

Robert Dede

Hello,

Not sure how well your app will port, but you could always look at an
alternative charting tool as a worse case scenario. Email us some screen
shots of what you are producing and we can tell you how much work it would
take to port.

www.gigasoft.com

best regards,

Robert Dede
Gigasoft, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top