Modify

Opened 17 years ago

Closed 16 years ago

#1167 closed Bug (Fixed)

_FTP_ProgressDownload crashes

Reported by: ProgAndy Owned by: J-Paul Mesnage
Milestone: 3.3.1.4 Component: Standard UDFs
Version: 3.3.1.3 Severity: Blocking
Keywords: Cc:

Description

_FTP_ProgressDownload crashes with the message "error allocating memory". The reason for this is a wrong order of the params in the call for _WinAPI_MakeQWord.

$glen = _WinAPI_MakeQWord($ai_FTPGetFileSize[2], $ai_FTPGetFileSize[0])
It should be changed to this:
$glen = _WinAPI_MakeQWord($ai_FTPGetFileSize[0], $ai_FTPGetFileSize[2])

Attachments (0)

Change History (6)

comment:1 by ProgAndy, 16 years ago

This bug also occurs in:
_FTP_FileGetSize (line 461)
FTP_ListToArray (line 1184, 1205)

I think this bug has been created when inverting the params of _WinAPI_MakeQWord
( ;_FTPFileTimeLoHi ; --> _WinAPI_MakeQWord ; parameter inversion )

comment:2 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.1.2
Resolution: Fixed
Status: newclosed

already fix in next beta 3.3.1.2

comment:3 by partypooper@…, 16 years ago

This bug has reappeared in 3.3.1.3. Line 975 of FTPEx.au3 has:

$glen = _WinAPI_MakeQWord($ai_FTPGetFileSize[2], $ai_FTPGetFileSize[0]) ;FileGetSize($s_RemoteFile)

It should be:

$glen = _WinAPI_MakeQWord($ai_FTPGetFileSize[0], $ai_FTPGetFileSize[2]) ;FileGetSize($s_RemoteFile)

comment:4 by Valik, 16 years ago

Milestone: 3.3.1.2
Resolution: Fixed
Severity: NoneBlocking
Status: closedreopened
Version: 3.3.1.13.3.1.3

comment:5 by J-Paul Mesnage, 16 years ago

can somebody put a working example of _FTP_ProgressDownload()?
Thanks

comment:6 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.1.4
Owner: changed from Gary to J-Paul Mesnage
Resolution: Fixed
Status: reopenedclosed

Fixed in version: 3.3.1.4

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.