Sign in to follow this  
Followers 0
MCP

Runtime error

10 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Try to run it on problematic machine in uncompiled (AU3) format from Scite so it should give you error line.

Or make compiled debug version which will write to LOG file every @scriptline activity.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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? :)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0