Code center > Bugs and fixes

A weird bug with graphs

(1/2) > >>

Sprotiel:
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: ---If maxy < 1 Then maxy = 1
--- End code ---
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.

Numsgil:
You forgot to include it.

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

shvarz:
It's fixed?

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

 :clap:

Sprotiel:

--- Quote ---You forgot to include it.
--- End quote ---
I'm quite sure there was something in the "File attachments" box. I don't know what happened.

Sprotiel:

--- Quote ---It's fixed?
--- End quote ---
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...

Navigation

[0] Message Index

[#] Next page

Go to full version