Modify

Opened 6 years ago

Closed 3 years ago

#3659 closed Bug (Fixed)

InetClose() always return "False".

Reported by: the.tersion@… Owned by: Jon
Milestone: 3.3.15.4 Component: AutoIt
Version: 3.3.14.5 Severity: None
Keywords: inetclose Cc:

Description

The reference of InetClose() says:
Return Value
True: if the handle was found and closed.
False: if not.

But in this simple example, InetClose() alway return "False":

#include <InetConstants.au3>

Local $hDownload

$hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @ScriptDir & "\test.txt", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)
ConsoleWrite(@error)
Sleep(5000)
$bReturn = InetClose($hDownload)
MsgBox(0, "", $bReturn)

Even here while download is effectively interrupted, InetClose() return "False":

Local $hDownload = InetGet("https://www.autoitscript.com/autoit3/files/archive/autoit/autoit-v3.3.14.5-setup.exe", @ScriptDir & "\test.exe", 1, 1)
ConsoleWrite($hDownload & @crlf)
ConsoleWrite(@error & @crlf)
$bReturn = InetClose($hDownload)
ConsoleWrite($bReturn & @crlf)
ConsoleWrite($hDownload & @crlf)

Output in console:
1
0
False
1

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Hi,
FIx sent to Jon

comment:2 Changed 3 years ago by Jon

  • Milestone set to 3.3.15.4
  • Owner changed from Jpm to Jon
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed by revision [12554] in version: 3.3.15.4

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.