Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Sprotiel on June 07, 2005, 02:06:51 PM

Title: A weird bug with graphs
Post by: Sprotiel 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.
Title: A weird bug with graphs
Post by: Numsgil on June 07, 2005, 02:09:49 PM
You forgot to include it.

Other than that good work!  Thi has been bugging shvarz forever.
Title: A weird bug with graphs
Post by: shvarz on June 07, 2005, 02:14:30 PM
It's fixed?

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

 :clap:
Title: A weird bug with graphs
Post by: Sprotiel 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.
Title: A weird bug with graphs
Post by: Sprotiel 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...
Title: A weird bug with graphs
Post by: Numsgil 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)