Jump to content

Runtime error


MCP
 Share

Recommended Posts

If I compile the program, everything seems to go fine, but as soon as I run it, I get the following

AVector: []: Out of bounds.

Is there a way to get further info, at least the line that is causing the problem? The program is large, I have many arrays to look at and I am stuck.

Thx in advance, guys!

Link to comment
Share on other sites

Well, I have discovered the error is thrown when on Windows 2000, while XP is running the program smoothly and correctly.

Any idea on how to catch problem?

Edited by MCP
Link to comment
Share on other sites

Well, I have discovered the error is thrown when on Windows 2000, while XP is running the program smoothly and correctly.

Any idea on how to catch problem?

Wow. Just from googling, it looks like a C++ error (AutoIt interpreter vice the script).

What version of AutoIt did you compile with, and can you try another (maybe Beta)?

Are there any unusual compiler directives in it?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

If I compile the program, everything seems to go fine, but as soon as I run it, I get the following

AVector: []: Out of bounds.

Is there a way to get further info, at least the line that is causing the problem? The program is large, I have many arrays to look at and I am stuck.

Thx in advance, guys!

can you post a sample of your script or at least PM it to me if you don't want to share it with other.

I hope it is not to complicated to launch so I can analyse.

Such error is due to an internal error of AutoIT code.

Link to comment
Share on other sites

What version of AutoIt did you compile with, and can you try another (maybe Beta)?

Well, I am running 3.2.8.1 and cannot currently test it easily / thouroughly cause it is a computer i am seldomly working on
Link to comment
Share on other sites

can you post a sample of your script or at least PM it to me if you don't want to share it with other.

I hope it is not to complicated to launch so I can analyse.

Such error is due to an internal error of AutoIT code.

I have changed the source code a lot in the last 2 days and I have not tested it yet. On next Tuesday I will be working on the Win2K pc again, if the error still comes out, I will send you a copy. Thx jpm.
Link to comment
Share on other sites

I have changed the source code a lot in the last 2 days and I have not tested it yet. On next Tuesday I will be working on the Win2K pc again, if the error still comes out, I will send you a copy. Thx jpm.

Did you have a chance to work on it? :)
Link to comment
Share on other sites

  • 4 weeks later...

Did you have a chance to work on it? <_<

First: SORRY for answering so late

Second: Well, I am changing the program too quickly to systematically reproduce the error and I cannot often access a win2k workstation.

Perhaps something like this:

Func ShowElements(ByRef $aKeyAndValue)
    If Not IsArray($aKeyAndValue) Then Return
    
    For $a In $aKeyAndValue
        MsgBox(0, 'Key: ' & $a, 'Element: ' & $aKeyAndValue[$a])
    Next
EndFunc   ;==>ShowElements

It can be compiled but it generates an error at runtime (my other post)

Link to comment
Share on other sites

First: SORRY for answering so late

Second: Well, I am changing the program too quickly to systematically reproduce the error and I cannot often access a win2k workstation.

Perhaps something like this:

Func ShowElements(ByRef $aKeyAndValue)
    If Not IsArray($aKeyAndValue) Then Return
    
    For $a In $aKeyAndValue
        MsgBox(0, 'Key: ' & $a, 'Element: ' & $aKeyAndValue[$a])
    Next
EndFunc   ;==>ShowElementsoÝ÷ ØjvÞr©Wnëb¶§z¶­zƧzºè­«kº{bé²¢Ø^®êå

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...