Author Topic: A weird bug with graphs  (Read 3256 times)

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
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
Code: [Select]
If maxy < 1 Then maxy = 1just 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.
« Last Edit: June 07, 2005, 02:16:47 PM by Sprotiel »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
A weird bug with graphs
« Reply #1 on: June 07, 2005, 02:09:49 PM »
You forgot to include it.

Other than that good work!  Thi has been bugging shvarz forever.

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
A weird bug with graphs
« Reply #2 on: June 07, 2005, 02:14:30 PM »
It's fixed?

I think I'm gonna faint.....

 :clap:
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
A weird bug with graphs
« Reply #3 on: June 07, 2005, 02:20:54 PM »
Quote
You forgot to include it.
I'm quite sure there was something in the "File attachments" box. I don't know what happened.

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
A weird bug with graphs
« Reply #4 on: June 07, 2005, 02:24:08 PM »
Quote
It's fixed?
I BELIEVE it's fixed. At least it doesn't crash in a situation where it crashed before, but who knows? This bug shouldn't have happened in the first place...

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
A weird bug with graphs
« Reply #5 on: June 07, 2005, 02:31:57 PM »
I could never reproduce it on my computer.  It's hard sometimes because VB doesn't run the same on every system (different msvb60.dll)