Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (154 - 156 of 3866)

Ticket Resolution Summary Owner Reporter
#1046 No Bug Hard crash when parsing larger strings using StringSplit() Bowmore
Description

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
#1192 Works For Me Tidy.exe crashes - when long strings are assinged again? Jos Bowmore
Description

Environment = 3.3.1.1 under WIN_XP/Service Pack 2 X86 When running Tidy on Tidy_Crash.au3 Tidy crashes. The commented out assingments to $sNew and $sExisting are identical to the 2 above. Tidy crashes still crashes if the second assingments to $sNew and $sExisting are uncommented, but if they are removed from the file Tidy runs with no problem.

The strings I'm assinging are quite long but well within AutIts limits.

I have attached 2 simple files to demonstrate the issue

Scite outout from crashing version

>"C:\Autoit3\Scite\tidy\tidy.exe" "C:\AutoIt3Data\Scripts\Bug Reports\Tidy_Crash.au3"
Tidy AutoIt3 v2.0.28.6   Copyright (c) Jos van der Zande  August 7, 2009
>Exit code: -1073741819    Time: 1.985

Scite outout from non-crashing version

>"C:\Autoit3\Scite\tidy\tidy.exe" "C:\AutoIt3Data\Scripts\Bug Reports\Tidy_No_Crash.au3"
Tidy AutoIt3 v2.0.28.6   Copyright (c) Jos van der Zande  August 7, 2009
+> Tidy AutoIt3 finished. Original copied to:"C:\AutoIt3Data\Scripts\Bug Reports\BackUp\Tidy_No_Crash_old11.au3"
>Exit code: 0    Time: 0.338
#1240 Fixed FileInstall() Help file clarification. Nutster Bowmore
Description

The help file does not state that the destination folder must already exist or the install will fail, and it is the coders responsibility to check if the destination folder exists and create it if necessary. This may help avoid some confusion on the part of users when they find that their file has not been installed.

Proposed change

dest - The destination path of the file with trailing backslash if only the directory is used. This can be a variable. If the destination folder does not exist it is not automatically created and the file will not be installed.
Note: See TracQuery for help on using queries.