CE101

Run Script (x64)

7 posts in this topic

I have a script that processes XLS files. Some of these files are quite large (16000 rows) and about 10% of the time it crashes on a number of specific COM statements throughout the script.

Someone suggested that I should run in 64-bit mode instead of 32-bit. And that seemed to solve the problem.

Now my problem is that sometimes out of habit I forget to click "Run Script (x64)".   
In Windows Explorer, when I right-click on the script I get a dropdown list of 30 items, including....
        Run Script
        Compile Script
        Compile with Options
        Compile Script (x64)
        Compile Script (x86)
        Run Script (x64)
        Run Script (x86)

So if I am not really focused I can click RunScript or RunScriptx86 instead of RunScriptx64 and I wont know until it crashes, sometimes 30 minutes later.

QUESTION.
Is there any code that can be added to the script that will warn me when I'm not running x64 mode ?

Share this post


Link to post
Share on other sites



Thank you for getting back to me.

I understand from the following articles that #AutoIt3Wrapper_UseX64 is a directive to the compiler ...  
   https://www.autoitscript.com/wiki/AutoIt3Wrapper_Directives
   https://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/AutoIt3Wrapper.html  

I am not compiling the script. I am running it in interpretive mode.

Do wrapper directives also affect the way the Interpreter does its thing?
Does the wrapper directive UseX64 force the Interpreter to work in 64-bit mode?

Share this post


Link to post
Share on other sites
8 hours ago, CE101 said:

Do wrapper directives also affect the way the Interpreter does its thing?
Does the wrapper directive UseX64 force the Interpreter to work in 64-bit mode?

Yes but only when using the Full SciTE4AutoIt3 version, which runs AutoIt3Wrapper when doing a Run or Compile from within SciTE !

Jos

1 person likes this

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

Share this post


Link to post
Share on other sites

You can use: #pragma compile(x64, true)

1 person likes this

Share this post


Link to post
Share on other sites

Thank you all for the responses.

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