Modify

Opened 12 years ago

Closed 12 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 by anonymous, 12 years ago

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 by J-Paul Mesnage, 12 years ago

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 by anonymous, 12 years ago

$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 by Jon, 12 years ago

Resolution: Works For Me
Status: newclosed

comment:5 by Jon, 12 years ago

Resolution: Works For Me
Status: closedreopened

comment:6 by Jon, 12 years ago

Version: 3.3.8.13.3.10.2

comment:7 by Jon, 12 years ago

Milestone: 3.3.11.2
Owner: set to Jon
Resolution: Fixed
Status: reopenedclosed

Fixed by revision [9555] in version: 3.3.11.2

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


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