Histogram "Division By Zero" message in VB6

TeeChart for ActiveX, COM and ASP
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Histogram "Division By Zero" message in VB6

Post by Jeff » Tue Jan 27, 2004 3:46 pm

I'm having a problem when I create a histogram using TeeChart 6 in VB 6. If the histogram has no data points in it, when you move the mouse over the chart, a message box pops up. It is titled "VB6" and says "Division by zero.". If you move the mouse away from the chart and press Enter, the error is cleared. But as soon as the mouse crosses the chart, the error reappears.

I duplicated the error with a very simple chart and form -- I created the chart, added one series of type histogram (3D). Then in the Data tab, I deleted all the data points and ran the program.

I've seen the problem on both my WinXP development box and on some Win2K machines which I've installed the program on.

Has anyone else seen this problem, or have ideas on fixing it?

Thanks,

Jeff

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Jan 27, 2004 4:07 pm

Hi Jeff,

yes, you're correct, it's a bug, I've added it on our defect list. We'll try to fix if for the next maintenance releases.

A workaround could be set Active to "false" while the series have not any data.

Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Post by Jeff » Tue Jan 27, 2004 5:39 pm

Thanks so much for checking into it and giving a work-around, Pep.

Jeff

Post Reply