Modify

Opened 15 years ago

Closed 15 years ago

#983 closed Bug (Fixed)

InetGet* functions failing under XP SP2

Reported by: idbirch Owned by: Valik
Milestone: 3.3.1.1 Component: AutoIt
Version: 3.3.1.0 Severity: None
Keywords: Cc:

Description

These functions don't work for me at all under WinXP SP2 however work fine on my Win7 machine. Example using InetGetSize:

$test = InetGetSize("http://support.easystreet.com/easydsl/testfile.bin")
msgbox (0,"dwd", $test)
>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "F:\test3.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams    
+>11:30:20 Starting AutoIt3Wrapper v.1.10.1.14    Environment(Language:0409  Keyboard:00000809  OS:WIN_XP/Service Pack 2  CPU:X86  ANSI)
>Running AU3Check (1.54.15.0)  from:C:\Program Files\AutoIt3\beta
+>11:30:20 AU3Check ended.rc:0
>Running:(3.3.1.0):C:\Program Files\AutoIt3\beta\autoit3.exe "F:\test3.au3"    
!>11:30:20 AutoIT3.exe ended.rc:-1073741819
+>11:30:22 AutoIt3Wrapper Finished
>Exit code: -1073741819    Time: 1.873
Environment = 3.3.1.0 under  WIN_XP/Service Pack 2 X86

Running under 3.3.0.0 the filesize is returned correctly. Same issue for this script (which also works fine under Win7):

$size = 52345034

$hDownload = InetGet("http://support.easystreet.com/easydsl/testfile.bin", @TempDir & "\testfile.bin",1,1)
$timer = TimerInit()

Do
	Sleep(1000)
	If TimerDiff($timer) > 60000 Then 
		InetClose($hDownload)
		$Aborted = True
	EndIf
	
Until InetGetInfo($hDownload, 2)    ; Check if the download is complete.

Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload)   ; Close the handle to release resourcs.
MsgBox(0, "", "Bytes read: " & $nBytes)
>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "F:\test.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams    
+>11:44:33 Starting AutoIt3Wrapper v.1.10.1.14    Environment(Language:0409  Keyboard:00000809  OS:WIN_XP/Service Pack 2  CPU:X86  ANSI)
>Running AU3Check (1.54.15.0)  from:C:\Program Files\AutoIt3\beta
F:\test.au3(9,106) : ERROR: InetGet() [built-in] called with wrong number of args.
$hDownload = InetGet("http://support.easystreet.com/easydsl/testfile.bin", @TempDir & "\testfile.bin",1,1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
F:\test.au3 - 1 error(s), 0 warning(s)
!>11:44:33 AU3Check ended.rc:2
>Running:(3.3.1.0):C:\Program Files\AutoIt3\beta\autoit3.exe "F:\test.au3"    
!>11:44:35 AutoIT3.exe ended.rc:-1073741819
+>11:44:36 AutoIt3Wrapper Finished
>Exit code: -1073741819    Time: 3.170

I can't run this one under 3.3.0.0 for obvious reasons.

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by Valik

Are there any other network related settings you can think of? Both examples work fine for me on Windows XP SP3.

comment:2 Changed 15 years ago by idbirch

Hm, not really. It's a freshly built machine with a wireless connection direct to an ADSL router (no proxy required). I disabled all AV and firewall software to make sure these weren't blocking anything but this made no difference. Exactly the same code runs fine if I just choose 'Go' from Scite, it's only when I use 'Beta run' that it fails.

I've just rebuilt the machine again minus any AV or firewall software and the results are exactly the same - INetGetSize works fine with 3.3.0.0 but gives the above error when run through 3.3.1.0.

comment:3 Changed 15 years ago by Xenobiologist

Sorry, I noticed this bugreport too late.
I opened this thread
http://www.autoitscript.com/forum/index.php?showtopic=95713
to show what happens.

What can I do to gather some more useful information?

Mega

comment:4 Changed 15 years ago by Valik

  • Milestone set to 3.3.1.1
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.3.1.1

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 Valik.
Author


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

 
Note: See TracTickets for help on using tickets.