Jump to content
Sign in to follow this  
Mat

Odd Aut2Exe errors.

Recommended Posts

Mat

When running Aut2Exe (either through the UI OR using AutoIt3Wrapper and SciTE) I get errors 9 times out of 10. Mostly the following: "Error: Error opening the destination file.", but that is less frequent without SciTE open, but also errors with various other messages - "Unable to set console subsystem." and "unable to create compiled archive".

None of this was happening last week.

Running au3's is fine. Running the exe's that do succeed work fine. To avoid a list, everything except Aut2exe is working as it always has been.

I have done the following:

  • Reinstalled AutoIt opting to uninstall the previous version
  • tried putting files in a different directory. (it is usually "C:\Programming\AutoIt" but I tried the users directory and desktop and root etc.
  • Editing UAC settings (I am running vista Home premium sp2)

Any ideas? I have reached the conclusion that the 'destination' file refers to the .au3, as it creates an exe, which when run says that it is "Unable to open the script file".

Mat

Share this post


Link to post
Share on other sites
Jos

Did you check your AV and maybe try excluding the script directory to test if that is the root cause?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Mat

Did you check your AV and maybe try excluding the script directory to test if that is the root cause?

Jos

Completely disabling av had no effect. That includes windows security or whatever it is they ship with it by default.

This is probably more helpful... Trying to use AutoitWrapper gave this error.

Error: EndUpdateResource: Returncode = 0 - LastError:5:Access is denied.

hmm... I will try starting aut2exe as admin.

Share this post


Link to post
Share on other sites
Jos

Completely disabling av had no effect. That includes windows security or whatever it is they ship with it by default.

This is probably more helpful... Trying to use AutoitWrapper gave this error.

Error: EndUpdateResource: Returncode = 0 - LastError:5:Access is denied.

hmm... I will try starting aut2exe as admin.

That error will only be possible when you use AutoIt3Wrapper since this is the resource update portion.

You stated that AUT2EXE also has errors so there has to be another issue why the compiler can get access to the file anymore.

Any other antispam software running or something like that?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Mat

That error will only be possible when you use AutoIt3Wrapper since this is the resource update portion.

You stated that AUT2EXE also has errors so there has to be another issue why the compiler can get access to the file anymore.

Any other antispam software running or something like that?

Nope.

Share this post


Link to post
Share on other sites
eltorro

Share this post


Link to post
Share on other sites
eltorro

Full except for 'special' permissions which I seem to be unable to set.

Is that for the AutoIt folder or you script folder?

Check the script folder.

Share this post


Link to post
Share on other sites
ripdad

Hi Mat,

Backup your scripts on a flash drive.

Then right-click on C:\ >> Choose Properties >> Tools Tab >> Error Checking >>

Check Now >> Check All >> Start >> Click Yes and Reboot

It will check your hard drive for bad sectors and file errors.

Not that you have any .. but at least you can rule that out.


"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites
BinaryBrother

DropBox is known to cause permission issues during the compile process, if you compile in a DropBox synced DIR.

Do you have any application that might be locking the file handles periodically? Sync apps, etc.

Share this post


Link to post
Share on other sites
Mat

Sorry I haven't been here... slightly hectic night last night. Errors are same as always.

Hi Mat,

Backup your scripts on a flash drive.

Then right-click on C:\ >> Choose Properties >> Tools Tab >> Error Checking >>

Check Now >> Check All >> Start >> Click Yes and Reboot

It will check your hard drive for bad sectors and file errors.

Not that you have any .. but at least you can rule that out.

All my scripts ended up being 106mb :idea: next time the computer starts it will run it. I doubt that's the problem.

Are you using a virtual machine?

Nope.

DropBox is known to cause permission issues during the compile process, if you compile in a DropBox synced DIR.

Do you have any application that might be locking the file handles periodically? Sync apps, etc.

Nope.

Share this post


Link to post
Share on other sites
BinaryBrother

A full report of installed apps, running Services, and currently running processes might help. I can't pretend I'll know what's wrong, but I think it would certainly help the developers. :idea:

Share this post


Link to post
Share on other sites
Mat

A full report of installed apps, running Services, and currently running processes might help. I can't pretend I'll know what's wrong, but I think it would certainly help the developers. :idea:

I'll see what I can do.

Share this post


Link to post
Share on other sites
Shafayat

I used to get the errors on windows 7 about thrice in 10 tries.

Just to test it, I installed windows7 separately on a new, never before used, harddisk. Then I installed Autoit and tried compiling. Oddly, I got errors on the first try. Then I tried with some other script. Sometimes they compile just fine. Sometimes they give errors without any (visible) reason. What might be causing that. If you want I can post a video of the whole process.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
Jos

Also try testing without the Windows Explorer being open on the directory your script is created in.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Shafayat

It works like magic when explorer is closed. No Errors at all. But what's causing this?


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
Jos

It works like magic when explorer is closed. No Errors at all. But what's causing this?

We haven't figured out what the exact root-cause is but it looks like the explorer reads the new EXE file's properties while the process isn't finished yet and still need to update the EXE's resources.

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.