Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (157 - 159 of 3883)

Ticket Resolution Summary Owner Reporter
#1338 Fixed _arrayDisplay() GUI position error Jpm Bowmore
Description

The _arrayDisplay() function calculates a very poor GUI location when displaying large arrays. Bug Report Environment AutoIt:3.3.1.6 (Os:WIN_XP/X86/Service Pack 3 Language:0409 Keyboard:00000809 Cpu:X64)

When diplaying arrays with long rows and many columns of data, using _arrayDisplay(), the GUI X position is calculated as a large negative value that positions the GUI off the visible screen. To see the displayed array you have to right clisk on the taskbar button and select maximize which fits the GUI to the monitor display

#include <array.au3>
#include <string.au3>

Global $g_aTestArray[5][240]

AdlibRegister("_DisplayWindowSize", 1000)

_PopulateArray($g_aTestArray)

_ArrayDisplay($g_aTestArray, "Display Array With Longish Rows")

Exit

Func _PopulateArray(ByRef $aTestArray)
  Local $fPopulate = True

  ;Generate some data for the array
  For $i = 0 To 4
    For $j = 0 To 239
      $fPopulate = Random(0, 1, 1)
      If $fPopulate Then
        $aTestArray[$i][$j] = _StringRepeat(Chr(Random(48, 90, 1)), Random(10, 40, 1))
      EndIf
    Next
  Next
EndFunc   ;==>_PopulateArray

Func _DisplayWindowSize()
  Local $aPos = 0

  $aPos = WinGetPos("Display Array With Longish Rows")
  If Not @error Then
    AdlibUnRegister("_DisplayWindowSize")
    MsgBox(0, "_ArrayDisplay Window Size", "X = " & $aPos[0] & @CRLF & "Y = " & $aPos[1] & @CRLF & "W = " & $aPos[2] & @CRLF & "H = " & $aPos[3] & @CRLF)
  EndIf
EndFunc   ;==>_DisplayWindowSize
#1411 Rejected FileReadLine enhancement to enable more efficient reading of very large files. Bowmore
Description

I would like to suggest a possible enhancement to the FileReadLine() function to improve the speed of processing very large text file (> 500MB, millions of rows) which are too large for autoIT to load into memory in one chunk using FileRead() or _FileReadToArrary(). What I would like is an extra optional parameter for FileReadLine("filehandle/filename"[,line[,NumLines=1]]) so that it would be possible to read a file for example in 50000 line chunks with each call to FileReadLine() rather than having to call FileReadLine() for every line in the file.

Example of how I envisage it would be used:

$sFile = "C:\data\very large file.txt"
$hFile = FileOpen($sFile, 0)
$iStartLine = 1
$iNumLines = 50000
$sData = FileReadLine($hFile, $iStartLine, $iNumLines)
While Not @error
  $aData = StringSplit($sData, @CRLF, 1)
  ; ...
  ; Process $aData
  ; ...
  $iStartLine += $iNumLines
  $sData = FileReadLine($hFile, $iStartLine, $iNumLines)
Wend
FileClose($hFile)
#1442 Completed _FileWriteLog to allow allow file handle or filename as first parameter guinness Bowmore
Description

Where an application is writing to a log file frequently, the opening and closing of the log file for each entry can slow the application. It would speed things up it _FileWriteLog() could accept a file handle or a file name as the first parameter, similar to the way _FileWriteFromArray() does.

Note: See TracQuery for help on using queries.