16
Bugs and fixes / A weird bug with graphs
« on: June 07, 2005, 02:06:51 PM »
The bug: when you open and then close a graph whose max value is zero, you get an overflow error at the next graphs' refresh.
What was weird was that looking at it in debug mode, you understand that it's caused by a division by maxy, which has the value 0, even though there 's the line
Looks like a random quirk of VB6. :rolleyes:
Anyway, I managed to fix it, though I have no idea how.
Instructions: Drop the attached file in your DB source folder and rebuild the exe.
What was weird was that looking at it in debug mode, you understand that it's caused by a division by maxy, which has the value 0, even though there 's the line
Code: [Select]
If maxy < 1 Then maxy = 1
just before !Looks like a random quirk of VB6. :rolleyes:
Anyway, I managed to fix it, though I have no idea how.
Instructions: Drop the attached file in your DB source folder and rebuild the exe.