Modify

Opened 11 years ago

Closed 11 years ago

#2512 closed Bug (Fixed)

ObjName crash

Reported by: anonymous Owned by: Jon
Milestone: 3.3.11.2 Component: AutoIt
Version: 3.3.10.2 Severity: None
Keywords: Cc:

Description

$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("GET", "http://www.autoitscript.com/forum/", False)
$oHTTP.Send()
$vRet = $oHTTP.ResponseStream()
ObjName($vRet) ;<-- HERE CRASH

Attachments (0)

Change History (7)

comment:1 Changed 11 years ago by anonymous

Crashes with 3.3.9.22 as well.

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Temp\Test.au3" /UserParams    
+>12:59:16 Starting AutoIt3Wrapper v.2.1.3.0 SciTE v.3.3.6.0 ;  Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407  Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (3.3.9.22)  from:C:\Program Files (x86)\AutoIt3\Beta
+>12:59:17 AU3Check ended.rc:0
>Running:(3.3.9.22):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "C:\Temp\Test.au3"    
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop!
>12:59:22 AutoIt3.exe ended.rc:-1073741819
>Exit code: -1073741819    Time: 5.126

comment:2 Changed 11 years ago by Jpm

Your example is stop at open Under 3.3.8.1 and does not produce any error Under 3.3.9.22

in fact open does not succeed

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "F:\AdmMesnage\_Data\Desktop\#2512 ObjName crash.au3" /UserParams    
+>09:18:20 Starting AutoIt3Wrapper v.2.1.3.0 SciTE v.3.3.6.0 ;  Keyboard:0000040C  OS:WIN_8/  CPU:X64 OS:X64    Environment(Language:040C  Keyboard:0000040C  OS:WIN_8/  CPU:X64 OS:X64)
>Running AU3Check (3.3.9.22)  params:-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7  from:C:\Program Files (x86)\AutoIt3\Beta
+>09:18:20 AU3Check ended.rc:0
>Running:(3.3.9.22):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "F:\AdmMesnage\_Data\Desktop\#2512 ObjName crash.au3"    
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
@@ Debug(14) : $oHTTP = 
>Error code: 0    Extended code: 0 (0x00000000)
@@ Debug(16) : $open = 
>Error code: -2147352567    Extended code: 0 (0x00000000)
@@ Debug(18) : $send = 
>Error code: -2147352567    Extended code: 0 (0x00000000)
@@ Debug(20) : $vRet = 
>Error code: -2147352567    Extended code: 0 (0x00000000)
@@ Debug(22) : $objname = 
>Error code: 1    Extended code: 0 (0x00000000)
+>09:18:20 AutoIt3.exe ended.rc:0
>Exit code: 0    Time: 0.528

comment:3 Changed 11 years ago by anonymous

$vRet is not an object -- so why are you using ObjName($vRet)?

From: http://msdn.microsoft.com/en-us/library/windows/desktop/aa384023(v=vs.85).aspx

The ResponseStream property retrieves the response entity body as an IStream.

A Variant that receives a pointer to an IUnknown interface that
can be queried for an IStream interface. This stream returns
the raw data
as received directly from the server.

comment:4 Changed 11 years ago by Jon

  • Resolution set to Works For Me
  • Status changed from new to closed

comment:5 Changed 11 years ago by Jon

  • Resolution Works For Me deleted
  • Status changed from closed to reopened

comment:6 Changed 11 years ago by Jon

  • Version changed from 3.3.8.1 to 3.3.10.2

comment:7 Changed 11 years ago by Jon

  • Milestone set to 3.3.11.2
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed by revision [9555] in version: 3.3.11.2

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.