Jump to content

Recommended Posts

Posted (edited)

A question for all of you with more insight information and understanding than me:

According to the docu the max. size of a string is ~2GB. Are there any situations where a memory error shows up with strings much smaller (128MB, 512MB)?

In this (the problem occurred here) we try to understand what happens because we get "Error allocating memory" with different sized strings.

Any information will be creatly appreciated!

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Moderators
Posted

water,

I seem to remember a thread a while ago where an "Out of memory" problem was caused because AutoIt needed more memory to do whatever it needed to do to the string - leading to a total memory bill possibly several times that of the actual string itself. Perhaps this is the same thing? :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

Melba,

thanks for your reply.

What we do is a simple "FileRead".

PsaltyDS mentioned in this that the problem we encounter might be caused by Windows memory management.

water

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

The maximum string size equal to the maximum contiguous memory block that is available for your program (by default 2 GB). Since the memory can be defragmented, the maximum size of the memory block is smaller than 2 GB.

Posted

Thanks a lot for the explanation!

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...