Modify ↓
Opened 8 years ago
Closed 5 years ago
#3659 closed Bug (Fixed)
InetClose() always return "False".
| Reported by: | 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 by , 6 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 5 years ago
| Milestone: | → 3.3.15.4 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | assigned → closed |
Fixed by revision [12554] in version: 3.3.15.4
Note:
See TracTickets
for help on using tickets.

Hi,
FIx sent to Jon