Modify

Opened 14 years ago

Closed 13 years ago

#1901 closed Bug (Fixed)

Compiled 32bit scripts not working in system32 path on 64bit OS

Reported by: Highguy Owned by: Valik
Milestone: 3.3.9.5 Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description (last modified by Valik)

Heavily re-written by Valik:

32-bit scripts do not run from system32 on 64-bit Windows. This is because AutoIt has redirection enabled so the system calls to read the script from the file are sent to SysWOW64 which does not contain the file. There are two solutions:

  1. Temporarily turn off redirection at startup so AutoIt sees real paths (I assume this is possible, I'm a bit fuzzy on the API). Turn on redirection once the script is loaded but before user code is executed.
  2. Load the script directly from memory. This is the better solution but should be done as part of a larger change to how scripts are loaded. Specifically a byte-code compiled form of script should be loaded by Windows with the rest of the binary where it can then be executed directly from memory. Scripts probably need stored as a resource for this to work. This makes fixing this bug dependent on a change that has no current plans.

Finally, this bug should also affect FileInstall(). The first solution may need applied to FileInstall() (Perhaps via an option). The second solution is not viable for FileInstall() because we don't want to load potentially massive files in memory at process start.

Link to the original topic.

Attachments (0)

Change History (6)

comment:2 Changed 14 years ago by Emiel Wieldraaijer

Forgot my name on the above message

comment:3 Changed 14 years ago by Valik

  • Description modified (diff)
  • Summary changed from Compiled 32bit scripts not working in system32 path on 64bit OS? to Compiled 32bit scripts not working in system32 path on 64bit OS

comment:4 Changed 14 years ago by Valik

Emiel, I just saw your reply. It's a different issue. I now know what is causing your problem and will respond in the other ticket.

comment:5 Changed 14 years ago by Emiel Wieldraaijer

Hi Valik,

My problem does not exist anymore..

Thanks

Cheers

Emiel

comment:6 Changed 13 years ago by Valik

  • Milestone set to 3.3.9.5
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [6961] in version: 3.3.9.5

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Valik.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.