Jump to content
Sign in to follow this  
Kogmedia

_INetGetSource Large List Crashing

Recommended Posts

Kogmedia

Hello,

I am parsing a 700+ eBay item to check for Invalid Items, I have tried it deferent ways, without going a snails pace, but I keep getting hard crashes. EXIT CODE 1073741819

I have done a bit of debugging an I believe it crashes @ $oIE_Source = _INetGetSource ( "http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item="&$item[1] ),

I have checked my code and it all seams fine, the ConsoleWrite(@error) doesn't get a chance to post when it crashes.

Any advice on further debugging or anything?? :)

Does _INetGetSource have a error reg/handler like _IE?

;CRASHING!
If InetGetSize("http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item="&$item) = 0 Then
$oIE_Source = _INetGetSource ( "http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item="&$item[1] )
ConsoleWrite(@error&@CR)
EndIf

;VERY SLOW
;_IENavigate($oIE,"http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item="&$item[1])
;$oIE_Title = _IEPropertyGet ( $oIE, "title" )
;If $oIE_Title = "Invalid Item" Then
    
If StringInStr($oIE_Source,"has been removed or is no longer available.") Then  
    _ArrayAdd ( $InvalidItems , $item[1] )
    ConsoleWrite("Invalid Item : "&$item[1]&@CRLF)
    $InvalidItems[0] = True ; True means it has found bad links
EndIf

Thanks in Advance,

Kog

Edited by Kogmedia

[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites
lod3n

InetGetSize("http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item="&$item)

_INetGetSource ( "http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item="&$item[1])

Looks like a problem with $item being referred to as an string ($item) and then an array $item[1]. Is InetGetSize really required anyway? Why not just check the contents of $oIE_Source after you _INetGetSource?

And no, _INetGetSource does not have a error reg/handler like _IE because it doesn't use COM objects. Looking at @error is the right way to do it.

If for some reason neither of those are working, you can download HTML using the HTTP GET functions posted on the form, or the WinHTTP WinHttpRequest COM object, several examples of which are also posted.


[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×