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
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
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.
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
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.