Code center > Bugs and fixes

Let's make a stable platform

<< < (17/26) > >>

Zelos:
I know it doesnt have to do with this, but ive tried .something and the vb says it dont work, how do you guys do that?

PurpleYouko:
OK I traced this right back up to routine Updatepos where I found a veggie (robot # 22) with a DNA length of zero.

It isn't really possible to go back any further than this since we have no way of telling how this happened.

I guess there is no option other than to fix the routine where the bug showed up.

Go back there and change


--- Code: ---If beginning > 0 Then
--- End code ---

to


--- Code: ---If beginning > 0 And beginning < uboundarray Then
--- End code ---

That should stop it ever happening again. The routine will simply return the value of the last element in the array when called now. (2 that is)

After making this repair you can even restart the program by going to the "immediate" window and typing in "k=0" then hit enter and press the go arrow in the tool bar. The program will continue without fault.

PurpleYouko:

--- Quote ---I know it doesnt have to do with this, but ive tried .something and the vb says it dont work, how do you guys do that?
--- End quote ---

What did you try. We can't help much without specifics

PurpleYouko:

--- Quote ---btw ... I don't know that I have the tools you speak of in the VB6 I have.
will see about this 'binocular' thing next time I have a chance to play.
--- End quote ---

If you downloaded VB6.0 then you have these tools. This is the most basic stuff that comes with every VB installation. Nothing extra needed here.

You even get this stuff in a VBA macro code window in Excel, Word or any MS Office application

PurpleYouko:

--- Quote ---go back where?
to what modual?
--- End quote ---
First of all, did you understand my instructions about tracing where the call to a specific module comes from?

I want to work with you on this so that you understand but when I have tried moving in baby steps previously I was accused of talking down to people too much.

If I assume that people know stuff then I get complaints from people who don't but if I get too basic then I get complaints from people who know a bit more.

I's a bit of a los-lose situation if you know what I mean.

Perhaps I need to start a debugging for beginners article on the Wiki.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version