Sign in to follow this  
Followers 0
PartyPooper

beta compile problem

3 posts in this topic

I took this example straight out of the AutoIt Help File and for some reason, using SciTE4AutoIt3 'beta run' works fine (I get a message box with the number of bytes read) but the 'beta compile' function doesn't (comes up with AutoIt Error Line -1: Error: Unknown function name). I'm using beta v3.3.1.1 and the latest SciTE4AutoIt3 (which has been configured to use the beta). So what am I missing? Why doesn't the compiled version run?:

Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @TempDir & "\update.dat", 1, 1)
Do
    Sleep(250)
Until InetGetInfo($hDownload, 2)    ; Check if the download is complete.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload)   ; Close the handle to release resourcs.
MsgBox(0, "", "Bytes read: " & $nBytes)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I take it by the lack of replies, it works fine for everyone else and it is just my system that's playing up?

Edit: I should've said that it compiles OK, but the resultant EXE comes up with the error I described above (like it is being compiled with the production version of AutoIt).

Edited by PartyPooper

Share this post


Link to post
Share on other sites

Nevermind, it's a bug apparently (Ticket #1036 (closed Bug: Fixed)).

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