System Error &H80131313&

  • Thread starter Thread starter Curtis
  • Start date Start date
C

Curtis

I get this system error randomly when I run my application that scraps a
webpage for its content. It occurs on the following lines of code:
'Get all the TR elements in the page
colTR = elmBody2.getElementsByTagName("TR")
For I = 0 To colTR.length - 1
elmTR = DirectCast(colTR.item(I), IHTMLElement)

Does anyone have any ideas of why this would be occuring?

Thanks,
Curtis
 
&H80131313 is the error CORDBG_E_FUNC_EVAL_BAD_START_POINT, one from
the CLR debugging services family. No idea why it would occur in your
code though, it doesn't make sense.


Mattias
 
Mattis,

Thank you for the reply. Is that error associated with the debuggin an
application because at the time of the error I was degguging an error.

Thanks,
Curtis
 
Mattais,

This is the actual exception that caused me to debug the application:

An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in
WebClient.exe

Additional information: Exception from HRESULT: 0xC0000005.

This is the code:

colA = elmTD2.getElementsByTagName("A")
For Z = 0 To colA.length - 1
elmA = DirectCast(colA.item(Z), IHTMLElement)

It randomly throws this exception and I have no idea why. Do you see any way
to prevent it? Any help would be greatly apperciated.

Thanks,

Curtis


Curtis said:
Mattis,

Thank you for the reply. Is that error associated with the debuggin an
application because at the time of the error I was degguging an error.

Thanks,
Curtis
 
Yes, it comes from the debugger. But I'm not sure why.

This is the code:

colA = elmTD2.getElementsByTagName("A")
For Z = 0 To colA.length - 1
elmA = DirectCast(colA.item(Z), IHTMLElement)

It randomly throws this exception and I have no idea why. Do you see any way
to prevent it? Any help would be greatly apperciated.

Not sure what causes this exceptuion either. Which statement exactly
in that code is it that throws?


Mattias
 
Thanks for the reply. Its not also this exact line of code but it is usually
when I am calling sometime of getTagsByName function and moving it into a
IHtmlElementCollection. It makes no sense what so ever and is totally
random. This uses the MSHTML class which is access through Idispatch from
what i know. Is there a better class out there that is part of the .Net
framework that will make this process easier. I have spent a lot of time on
this project and written a lot of code using the MSHTML interface but if
their is something better than I should probably take a look a rewriting my
code. Any suggestions would be greatly apperciated.

colA = elmTD2.getElementsByTagName("A")

Thanks,
Curtis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top