System Error &H80131313&

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Curtis

    #1

    System Error &H80131313&

    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.getEle mentsByTagName( "TR")
    For I = 0 To colTR.length - 1
    elmTR = DirectCast(colT R.item(I), IHTMLElement)

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

    Thanks,
    Curtis


  • Mattias Sjögren

    #2
    Re: System Error &H80131313& amp;


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


    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Curtis

      #3
      Re: System Error &H80131313& amp;

      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
      "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
      news:%23rNfHShv FHA.460@TK2MSFT NGP15.phx.gbl.. .[color=blue]
      >
      > &H80131313 is the error CORDBG_E_FUNC_E VAL_BAD_START_P OINT, one from
      > the CLR debugging services family. No idea why it would occur in your
      > code though, it doesn't make sense.
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.[/color]


      Comment

      • Curtis

        #4
        Re: System Error &amp;H80131313& amp;

        Mattais,

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

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

        Additional information: Exception from HRESULT: 0xC0000005.

        This is the code:

        colA = elmTD2.getEleme ntsByTagName("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" <csch_nu@hotmai l.com> wrote in message
        news:%23LnbfYhv FHA.2504@tk2msf tngp13.phx.gbl. ..[color=blue]
        > 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
        > "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
        > news:%23rNfHShv FHA.460@TK2MSFT NGP15.phx.gbl.. .[color=green]
        >>
        >> &H80131313 is the error CORDBG_E_FUNC_E VAL_BAD_START_P OINT, one from
        >> the CLR debugging services family. No idea why it would occur in your
        >> code though, it doesn't make sense.
        >>
        >>
        >> Mattias
        >>
        >> --
        >> Mattias Sjögren [MVP] mattias @ mvps.org
        >> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
        >> Please reply only to the newsgroup.[/color]
        >
        >[/color]


        Comment

        • Mattias Sjögren

          #5
          Re: System Error &amp;H80131313& amp;

          [color=blue][color=green]
          >> 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.[/color][/color]

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

          [color=blue]
          >This is the code:
          >
          >colA = elmTD2.getEleme ntsByTagName("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.[/color]

          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.

          Comment

          • Curtis

            #6
            Re: System Error &amp;H80131313& amp;

            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
            IHtmlElementCol lection. 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.getEleme ntsByTagName("A ")

            Thanks,
            Curtis

            "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
            news:u7jDN7tvFH A.1032@TK2MSFTN GP12.phx.gbl...[color=blue]
            >[color=green][color=darkred]
            >>> 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.[/color][/color]
            >
            > Yes, it comes from the debugger. But I'm not sure why.
            >
            >[color=green]
            >>This is the code:
            >>
            >>colA = elmTD2.getEleme ntsByTagName("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.[/color]
            >
            > 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.[/color]


            Comment

            Working...