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 , 12 years ago
comment:2 by , 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 , 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 , 12 years ago
| Resolution: | → Works For Me |
|---|---|
| Status: | new → closed |
comment:5 by , 12 years ago
| Resolution: | Works For Me |
|---|---|
| Status: | closed → reopened |
comment:6 by , 12 years ago
| Version: | 3.3.8.1 → 3.3.10.2 |
|---|
comment:7 by , 12 years ago
| Milestone: | → 3.3.11.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed by revision [9555] in version: 3.3.11.2

Crashes with 3.3.9.22 as well.