Jump to content
Sign in to follow this  
blackman12

[Q] Error Allocating Memory

Recommended Posts

blackman12

Hi, i coded a project with autoit and this project can create another autoit script, and the new script contain fileinstall command, then compile new script.While it is compiling new script, it use aut2exe with parameters.Thus far, everything is normal, but if file's size <which is attached with fileinstall> is great <e.g. 1 gb>, aut2exe give an error: "Error allocating memory"

Why do it give this error?And How can i solve it?

Share this post


Link to post
Share on other sites
KaFu

...is great <e.g. 1 gb>, aut2exe give an error: "Error allocating memory"...

Consider the amount of data you want to load to RAM! I think I remember that there's an au3 overhead putting data into memory, but also there's a limit enforced by the OS... one possibility might be to add more RAM... and another one would be to rethink your processing logic.

Edit: Link added (see also post below that one)

Retested the script in the linked post (had 32bit XP installed at that time). It kicked me out (Win7-64bit, 4GB RAM) at ~850mb, while memory usage in taskmanager peeked 3,2GB.

Edited by KaFu

Share this post


Link to post
Share on other sites
Jos

What are the parameters you use on AUT2EXE?

By the way: why would you even try to FileInstall() a file of 1 GB?


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
blackman12

Thax, i thought so kafu.

Jos, i use them: " /in /out /icon /comp /pack /x86 " and this script about unattended windows.So script create unattended program.Unfortunately many programe is greater than 1 gb :mellow:

it's my script:

http://www.tnctr.com/index.php?showtopic=142402&st=0

Share this post


Link to post
Share on other sites
Igzter

Thax, i thought so kafu.

Jos, i use them: " /in /out /icon /comp /pack /x86 " and this script about unattended windows.So script create unattended program.Unfortunately many programe is greater than 1 gb :mellow:

it's my script:

http://www.tnctr.com/index.php?showtopic=142402&st=0

But what is the point of including the actual install executable into the script executable? Is it for the sake of only having one file, then you probably should be looking at InstallShield or similar pieces of software for packaging!

Share this post


Link to post
Share on other sites
Jos

Jos, i use them: " /in /out /icon /comp /pack /x86 " and this script about unattended windows.So script create unattended program.Unfortunately many programe is greater than 1 gb :mellow:

This is not the complete aut2exe params list and are many programs larger than 1 GB?

it's my script:

http://www.tnctr.com/index.php?showtopic=142402&st=0

Post it here when you want others to look it.

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

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.