﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1046	Hard crash when parsing larger strings using StringSplit()	Bowmore		"Environment = 3.3.1.1 under  WIN_XP/Service Pack 3 X86
Environment = 3.3.0.0 under  WIN_XP/Service Pack 3 X86

When loading a large file to an array using string split Autoit crashes 
i.e. The error message  'Error allocating memory' is displayed and AutoIt exits
I've checked that string length and array limits are not been exceeded
Perhaps I am expecting too much but I would have hoped for a more controlled way of handling a memory error, so that if my data is too large for StringSplit() to split, I could branch to a disk storage based method of processing the data I have 


{{{
$sTemp = ''
$aTemp = 0
;Increase the size of the string until problem occurs
For $j = 1 To 5
  ; Create string to replicate a medium sized file having being read.
  For $i = 1 To 1000000  * $j Step 1
    $sTemp &=  String ($i) & "" This is the average length of line that is in my data file"" & @CRLF
  Next
  MsgBox(0, ""String Split Test"", ""Length of string = "" & StringLen($sTemp))
  $aTemp = StringSplit($sTemp, @LF ) ; Memory error occurs at this point.
  MsgBox(0, ""String Split Test"", ""Array Ubound = "" & UBound($aTemp))
  $sTemp = ''
  $aTemp = 0
Next
}}}"	Bug	closed		AutoIt	3.3.1.1	None	No Bug	StringSplit	
