Code center > Darwinbots Program Source Code

How to fix overflow errors faster?

(1/4) > >>

Botsareus:
I found 2 overflow errors one I fixed , the other is a different story.

It turns out that when you run somthing in vb it runs is with the [you]same compilation rules as it does if you make exe file [/you], therefor you guys (PY, NUM) have to go to Options > compile > , turn Advanced optimizations off , then turn favor pentum pro (for the hell of it) on

Here is the trouble codes I pinpointed that cause the overflows"

the call for repruduction , the "per" part can get intager overflows.


--- Quote ---Reproduce rep(t), rob(rep(t)).mem(repro) + rob(rep(t)).mem(mrepro) 'causes oveflows
--- End quote ---


and finaly


--- Quote ---Private Function customcequa(n As Integer) As Boolean
'usage: 10 20 30 ~= is are 10 and 20 within 30 percent of each other?
  Dim a As Integer
  Dim b As Integer
  Dim c As Integer
  Dim d As Integer
 
  d = readst(n)
  b = readst(n)
  a = readst(n)
  c = a / 100 * d
'Here I am getting NEGATIVE values for c that cause integer oveflow
  customcequa = (a - c <= B) And (a + c * 1# >= B)
End Function
--- End quote ---

Note that I did not change the code for ANY of this models.

Note that I am waiting again on a virsion, and got rid of my mutation fixes hoping that its already added to the virsion you guys have. Lets start a new topic to with a list of stuff that needs to be done to mutation. In the mean time read this; try to comprehend it, and good luck with what ever you are working on.

Botsareus:
One more error , really annoing , when I Properly exit the Darwin Bots program it crashes, This has something to do with the quary unload code in the Mdi parent form.

PurpleYouko:
You can only exit DarwinBots from the VB screen by clicking the stop button. It is kind of annoying but not difficult to get around.

Numsgil:
Aright, I've fixed the two problems you've said.  Both are

Does the crashing program happen everytime you exit?  I don't think anyone's ever found something like that.  It's weird how sometimes we get specific bugs that are only on some people's systems.  There's definately not a universiality to VB.

Botsareus:
Num, what was happening in the top problem? (I could not figure it out at all)

Navigation

[0] Message Index

[#] Next page

Go to full version