Page 1 of 1

Histogram "Division By Zero" message in VB6

Posted: Tue Jan 27, 2004 3:46 pm
by 9079179
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

Posted: Tue Jan 27, 2004 4:07 pm
by Pep
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.

Posted: Tue Jan 27, 2004 5:39 pm
by 9079179
Thanks so much for checking into it and giving a work-around, Pep.

Jeff