What type of error is this ?

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

    What type of error is this ?

    Hi All

    Thanks to all who replied to my question dated 16/10/2003 with the same
    subject..

    In all replies I got every one is saying that I am using cint() etc. But i
    am not using any convert method.

    What I am using.

    I have one application veriable defined in global.asa that contain server
    address and that variable I am using as below.
    src =
    "<%=Application ("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19
    _c41.jpg"

    I am using so many times same variable in same page.

    I tried to add the variable one by one and error is coming some where in
    mid.
    If I am not using this variable and giving the server address as hard coded
    there is no error.

    This thing is giving me a real big problem...


    Error is below.
    Error Type:
    Microsoft VBScript runtime (0x800A0006)
    Overflow: '[number: 33362]'


    Kind Regards
    Fayyaz


    ---------------------------------Previous
    text-------------------------------------------

    I'll bet you a dollar. Are you using a function that expects an integer as
    an argument? How about showing your relevant code and we'll figure it out
    more easily.

    Ray at work

    "MFA" <MFA@MFA> wrote in message
    news:%23iYwhk$k DHA.1284@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > Thanks for your reply.
    >
    > No I am not converting using any variable in that page..
    >
    >
    > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
    > news:utsoga$kDH A.2160@TK2MSFTN GP10.phx.gbl...[color=green]
    > >
    > > "MFA" <MFA@MFA> wrote in message
    > > news:ecvthV$kDH A.2424@TK2MSFTN GP10.phx.gbl...[color=darkred]
    > > > I am getting this error below. (Its not integer related or variable[/color]
    > > related[color=darkred]
    > > > error)[/color]
    > >
    > > What makes you say that?
    > >
    > > Are you trying to CInt a variable that has a value of 33,362? You can't[/color]
    > go[color=green]
    > > over 32,767 (or under -32,768).
    > >
    > > Ray at work[/color][/color]

    Error Type:
    Microsoft VBScript runtime (0x800A0006)
    Overflow: '[number: 33362]'





  • Mark Schupp

    #2
    Re: What type of error is this ?

    Unless you can show the actual line where the error is occurring or show all
    of your code no one is going to be able to help you much.

    I would recommend that you put the value from Application("Se rver") into a
    local string variable if you are using it more than once.

    --
    Mark Schupp
    Head of Development
    Integrity eLearning



    "MFA" <MFA@MFA> wrote in message
    news:OTKMHixlDH A.1084@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi All
    >
    > Thanks to all who replied to my question dated 16/10/2003 with the same
    > subject..
    >
    > In all replies I got every one is saying that I am using cint() etc. But i
    > am not using any convert method.
    >
    > What I am using.
    >
    > I have one application veriable defined in global.asa that contain server
    > address and that variable I am using as below.
    > src =
    >[/color]
    "<%=Application ("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19[color=blue]
    > _c41.jpg"
    >
    > I am using so many times same variable in same page.
    >
    > I tried to add the variable one by one and error is coming some where in
    > mid.
    > If I am not using this variable and giving the server address as hard[/color]
    coded[color=blue]
    > there is no error.
    >
    > This thing is giving me a real big problem...
    >
    >
    > Error is below.
    > Error Type:
    > Microsoft VBScript runtime (0x800A0006)
    > Overflow: '[number: 33362]'
    >
    >
    > Kind Regards
    > Fayyaz
    >
    >
    > ---------------------------------Previous
    > text-------------------------------------------
    >
    > I'll bet you a dollar. Are you using a function that expects an integer[/color]
    as[color=blue]
    > an argument? How about showing your relevant code and we'll figure it out
    > more easily.
    >
    > Ray at work
    >
    > "MFA" <MFA@MFA> wrote in message
    > news:%23iYwhk$k DHA.1284@TK2MSF TNGP09.phx.gbl. ..[color=green]
    > > Thanks for your reply.
    > >
    > > No I am not converting using any variable in that page..
    > >
    > >
    > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
    > > news:utsoga$kDH A.2160@TK2MSFTN GP10.phx.gbl...[color=darkred]
    > > >
    > > > "MFA" <MFA@MFA> wrote in message
    > > > news:ecvthV$kDH A.2424@TK2MSFTN GP10.phx.gbl...
    > > > > I am getting this error below. (Its not integer related or variable
    > > > related
    > > > > error)
    > > >
    > > > What makes you say that?
    > > >
    > > > Are you trying to CInt a variable that has a value of 33,362? You[/color][/color][/color]
    can't[color=blue][color=green]
    > > go[color=darkred]
    > > > over 32,767 (or under -32,768).
    > > >
    > > > Ray at work[/color][/color]
    >
    > Error Type:
    > Microsoft VBScript runtime (0x800A0006)
    > Overflow: '[number: 33362]'
    >
    >
    >
    >
    >[/color]


    Comment

    • Peter Foti

      #3
      Re: What type of error is this ?

      "MFA" <MFA@MFA> wrote in message
      news:OTKMHixlDH A.1084@tk2msftn gp13.phx.gbl...[color=blue]
      > Hi All
      >
      > Thanks to all who replied to my question dated 16/10/2003 with the same
      > subject..
      >
      > In all replies I got every one is saying that I am using cint() etc. But i
      > am not using any convert method.
      >
      > What I am using.
      >
      > I have one application veriable defined in global.asa that contain server
      > address and that variable I am using as below.
      > src =
      >[/color]
      "<%=Application ("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19[color=blue]
      > _c41.jpg"
      >
      > I am using so many times same variable in same page.
      >
      > I tried to add the variable one by one and error is coming some where in
      > mid.
      > If I am not using this variable and giving the server address as hard[/color]
      coded[color=blue]
      > there is no error.[/color]

      Perhaps you should try debugging using Response.Write. For example, replace
      the code above with this:

      <%
      If Len(Application ("Server")) > 0 Then
      Response.Write( "<div>Applicati on(""Server"") =[" & Application("Se rver")
      & "]</div>" )
      Else
      Response.Write( "<div>ERROR : Application(""S erver"") has a length of " &
      Len(Application ("Server")) & "</div>" )
      End If
      %>

      Watch for line wraps in the code above.
      -Peter Foti


      Comment

      • Bob Barrows

        #4
        Re: What type of error is this ?

        An overflow results when you try to assign a number to a space in memory
        that is not configured to contain the number of bytes required to represent
        the number. For example, you may have a variable that is defined as Integer.
        This variable will only be able to contain a number up to 32,768. If you try
        to assign a larger number, such as 33362, to the variable, it will generate
        an overflow error.

        This can also happen when you are adding two Integers together, if the
        result of the addition is greater than 32,768. When vbscript adds two
        numbers together, it creates a space in memory to store the result
        temporarily. It uses the largest datatype of the two numbers being added to
        create that space. So, if you add two Integers, it will create a temporary
        space that is configured to store an Integer. If the two integers being
        added are 21000 and 22000, the result, 43000 will be too big to put into the
        temporary storage location, causing the overflow error. The solution is to
        use CLng to convert at least one of the addends to a Long, so that the
        temporary storage location will be configured to store a Long result.

        HTH,
        Bob Barrows
        --
        Microsoft MVP -- ASP/ASP.NET
        Please reply to the newsgroup. The email account listed in my From
        header is my spam trap, so I don't check it very often. You will get a
        quicker response by posting to the newsgroup.



        Comment

        • Ray at

          #5
          Re: What type of error is this ?

          We're still waiting for you to show us the code, so we can help you.
          (Sorry if this message is double-posted.)

          Ray at work

          "MFA" <MFA@MFA> wrote in message
          news:OTKMHixlDH A.1084@tk2msftn gp13.phx.gbl...[color=blue]
          > Hi All
          > I have one application veriable defined in global.asa that contain server
          > address and that variable I am using as below.
          > src =
          >[/color]
          "<%=Application ("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19[color=blue]
          > _c41.jpg"
          >
          > I am using so many times same variable in same page.
          >
          > I tried to add the variable one by one and error is coming some where in
          > mid.
          > If I am not using this variable and giving the server address as hard[/color]
          coded[color=blue]
          > there is no error.
          >
          > This thing is giving me a real big problem...
          >
          >
          > Error is below.
          > Error Type:
          > Microsoft VBScript runtime (0x800A0006)
          > Overflow: '[number: 33362]'
          >
          >
          > Kind Regards
          > Fayyaz[/color]


          Comment

          • Ray at

            #6
            Re: What type of error is this ?

            WHAT LINE IS THE ERROR ON? THIS FILE IS 719 LINES LONG.

            Ray at home

            "MFA" <MFA@MFA> wrote in message
            news:OkXil17lDH A.1408@TK2MSFTN GP11.phx.gbl...[color=blue]
            > Thanks for your detail replies and help.
            >
            > I have attached source file.
            > When I am using <%=Application( "Server")%> it giving me error when I am
            > using http://127.0.0.1 its working fine, and I tried this assigning
            > <%=Application( "Server")%> value to a local variable but problem is same.
            >
            > I have many other .asp files on above of this file. I am using this file[/color]
            as[color=blue]
            > include file..
            >
            > Kind regards
            > Fayyaz
            >
            >
            >
            >
            >
            >
            >
            > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
            > news:OwRvo0zlDH A.1728@TK2MSFTN GP11.phx.gbl...[color=green]
            > > We're still waiting for you to show us the code, so we can help you.
            > > (Sorry if this message is double-posted.)
            > >
            > > Ray at work
            > >
            > > "MFA" <MFA@MFA> wrote in message
            > > news:OTKMHixlDH A.1084@tk2msftn gp13.phx.gbl...[color=darkred]
            > > > Hi All
            > > > I have one application veriable defined in global.asa that contain[/color][/color]
            > server[color=green][color=darkred]
            > > > address and that variable I am using as below.
            > > > src =
            > > >[/color]
            > >[/color]
            >[/color]
            "<%=Application ("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19[color=blue][color=green][color=darkred]
            > > > _c41.jpg"
            > > >
            > > > I am using so many times same variable in same page.
            > > >
            > > > I tried to add the variable one by one and error is coming some where[/color][/color][/color]
            in[color=blue][color=green][color=darkred]
            > > > mid.
            > > > If I am not using this variable and giving the server address as hard[/color]
            > > coded[color=darkred]
            > > > there is no error.
            > > >
            > > > This thing is giving me a real big problem...
            > > >
            > > >
            > > > Error is below.
            > > > Error Type:
            > > > Microsoft VBScript runtime (0x800A0006)
            > > > Overflow: '[number: 33362]'
            > > >
            > > >
            > > > Kind Regards
            > > > Fayyaz[/color]
            > >
            > >[/color]
            >
            >
            >[/color]


            Comment

            • MFA

              #7
              Re: What type of error is this ?

              Its giving error in any of parent file where I have included this file.

              And again let me tell u when I am doing the (below) changes in this file
              error is coming.
              If you want to see the parent code thats not possible as I am including it
              in different files dynamiclly.
              And I searched my whole project no where I am using Cint(), I am using
              Clng() and cdbl() and even I changed cdbl() to clng() but no success.

              I think there is any limit or something towards using variables or specially
              application() variables its not materr on converting interger or adding
              integers.

              Any how thanks for your help.

              Regards
              Fayyaz



              "Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
              news:OF0JhZ8lDH A.1084@tk2msftn gp13.phx.gbl...[color=blue]
              > WHAT LINE IS THE ERROR ON? THIS FILE IS 719 LINES LONG.
              >
              > Ray at home
              >
              > "MFA" <MFA@MFA> wrote in message
              > news:OkXil17lDH A.1408@TK2MSFTN GP11.phx.gbl...[color=green]
              > > Thanks for your detail replies and help.
              > >
              > > I have attached source file.
              > > When I am using <%=Application( "Server")%> it giving me error when I am
              > > using http://127.0.0.1 its working fine, and I tried this assigning
              > > <%=Application( "Server")%> value to a local variable but problem is[/color][/color]
              same.[color=blue][color=green]
              > >
              > > I have many other .asp files on above of this file. I am using this file[/color]
              > as[color=green]
              > > include file..
              > >
              > > Kind regards
              > > Fayyaz
              > >
              > >
              > >
              > >
              > >
              > >
              > >
              > > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
              > > news:OwRvo0zlDH A.1728@TK2MSFTN GP11.phx.gbl...[color=darkred]
              > > > We're still waiting for you to show us the code, so we can help you.
              > > > (Sorry if this message is double-posted.)
              > > >
              > > > Ray at work
              > > >
              > > > "MFA" <MFA@MFA> wrote in message
              > > > news:OTKMHixlDH A.1084@tk2msftn gp13.phx.gbl...
              > > > > Hi All
              > > > > I have one application veriable defined in global.asa that contain[/color]
              > > server[color=darkred]
              > > > > address and that variable I am using as below.
              > > > > src =
              > > > >
              > > >[/color]
              > >[/color]
              >[/color]
              "<%=Application ("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19[color=blue][color=green][color=darkred]
              > > > > _c41.jpg"
              > > > >
              > > > > I am using so many times same variable in same page.
              > > > >
              > > > > I tried to add the variable one by one and error is coming some[/color][/color][/color]
              where[color=blue]
              > in[color=green][color=darkred]
              > > > > mid.
              > > > > If I am not using this variable and giving the server address as[/color][/color][/color]
              hard[color=blue][color=green][color=darkred]
              > > > coded
              > > > > there is no error.
              > > > >
              > > > > This thing is giving me a real big problem...
              > > > >
              > > > >
              > > > > Error is below.
              > > > > Error Type:
              > > > > Microsoft VBScript runtime (0x800A0006)
              > > > > Overflow: '[number: 33362]'
              > > > >
              > > > >
              > > > > Kind Regards
              > > > > Fayyaz
              > > >
              > > >[/color]
              > >
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Ray at

                #8
                Re: What type of error is this ?

                When you get this error, does the page look like this in your browser?


                Microsoft VBScript runtime error '800a0006'

                Overflow: 'cint'

                /PATH/FILE.ASP, line 3



                Notice that it tells you the file in which the error is occurring and the
                line number in that file. It doesn't matter if it's in an include, or if
                you have the code sitting on a floppy disk. WHAT FILE. WHAT LINE NUMBER.
                WHAT IS ON THAT LINE IN THAT FILE?

                Ray at work






                "MFA" <MFA@MFA> wrote in message
                news:eU1eFw8lDH A.1884@TK2MSFTN GP09.phx.gbl...[color=blue]
                > Its giving error in any of parent file where I have included this file.
                >
                > And again let me tell u when I am doing the (below) changes in this file
                > error is coming.
                > If you want to see the parent code thats not possible as I am including it
                > in different files dynamiclly.
                > And I searched my whole project no where I am using Cint(), I am using
                > Clng() and cdbl() and even I changed cdbl() to clng() but no success.
                >
                > I think there is any limit or something towards using variables or[/color]
                specially[color=blue]
                > application() variables its not materr on converting interger or adding
                > integers.
                >
                > Any how thanks for your help.
                >
                > Regards
                > Fayyaz[/color]


                Comment

                • Aaron Bertrand - MVP

                  #9
                  Re: What type of error is this ?

                  > you have the code sitting on a floppy disk. WHAT FILE. WHAT LINE NUMBER.[color=blue]
                  > WHAT IS ON THAT LINE IN THAT FILE?[/color]

                  I gave up a few days ago. Not worth being frustrated about... however maybe
                  MFA could benefit from reading http://www.aspfaq.com/2081

                  And also doing this at the beginning of the file:

                  <%
                  srv = srv
                  response.Write srv
                  %>

                  And then replacing all 221 calls to <%=Application( "Server")%> to <%=srv%>

                  (Reduces file size from 67k to 43k)


                  Comment

                  • MFA

                    #10
                    Re: What type of error is this ?

                    Here is the error exactly

                    Error Type:
                    Microsoft VBScript runtime (0x800A0006)
                    Overflow: '[number: 33362]'


                    "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
                    news:OuOwQG9lDH A.3688@TK2MSFTN GP11.phx.gbl...[color=blue]
                    > When you get this error, does the page look like this in your browser?
                    >
                    >
                    > Microsoft VBScript runtime error '800a0006'
                    >
                    > Overflow: 'cint'
                    >
                    > /PATH/FILE.ASP, line 3
                    >
                    >
                    >
                    > Notice that it tells you the file in which the error is occurring and the
                    > line number in that file. It doesn't matter if it's in an include, or if
                    > you have the code sitting on a floppy disk. WHAT FILE. WHAT LINE NUMBER.
                    > WHAT IS ON THAT LINE IN THAT FILE?
                    >
                    > Ray at work
                    >
                    >
                    >
                    >
                    >
                    >
                    > "MFA" <MFA@MFA> wrote in message
                    > news:eU1eFw8lDH A.1884@TK2MSFTN GP09.phx.gbl...[color=green]
                    > > Its giving error in any of parent file where I have included this file.
                    > >
                    > > And again let me tell u when I am doing the (below) changes in this[/color][/color]
                    file[color=blue][color=green]
                    > > error is coming.
                    > > If you want to see the parent code thats not possible as I am including[/color][/color]
                    it[color=blue][color=green]
                    > > in different files dynamiclly.
                    > > And I searched my whole project no where I am using Cint(), I am using
                    > > Clng() and cdbl() and even I changed cdbl() to clng() but no success.
                    > >
                    > > I think there is any limit or something towards using variables or[/color]
                    > specially[color=green]
                    > > application() variables its not materr on converting interger or adding
                    > > integers.
                    > >
                    > > Any how thanks for your help.
                    > >
                    > > Regards
                    > > Fayyaz[/color]
                    >
                    >[/color]


                    Comment

                    • Aaron Bertrand - MVP

                      #11
                      Re: What type of error is this ?

                      > Error Type:[color=blue]
                      > Microsoft VBScript runtime (0x800A0006)
                      > Overflow: '[number: 33362]'[/color]

                      We got that already, several times. Perhaps you missed the upper case
                      portions of Ray's post. Here, I'll repeat them.
                      [color=blue][color=green]
                      > > WHAT FILE. WHAT LINE NUMBER.
                      > > WHAT IS ON THAT LINE IN THAT FILE?[/color][/color]

                      Why do you insist on making debugging so painful?


                      Comment

                      • MFA

                        #12
                        Re: What type of error is this ?

                        Thanks very much all of you for your support and advises.
                        I think I cannot explain to you more than this.

                        Any how thanks again and regards.


                        "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
                        news:#WeLrT#lDH A.424@TK2MSFTNG P10.phx.gbl...[color=blue][color=green]
                        > > Error Type:
                        > > Microsoft VBScript runtime (0x800A0006)
                        > > Overflow: '[number: 33362]'[/color]
                        >
                        > We got that already, several times. Perhaps you missed the upper case
                        > portions of Ray's post. Here, I'll repeat them.
                        >[color=green][color=darkred]
                        > > > WHAT FILE. WHAT LINE NUMBER.
                        > > > WHAT IS ON THAT LINE IN THAT FILE?[/color][/color]
                        >
                        > Why do you insist on making debugging so painful?
                        >
                        >[/color]


                        Comment

                        • Ray at

                          #13
                          Re: What type of error is this ?

                          Is this site available on the web? If so, can you post a link or something?
                          There seems to be a barrier that exists that I think I can bypass by using
                          http:// instead of person://.

                          Ray at work

                          "MFA" <MFA@MFA> wrote in message
                          news:uf9FdR%23l DHA.2536@tk2msf tngp13.phx.gbl. ..[color=blue]
                          > Here is the error exactly
                          >
                          > Error Type:
                          > Microsoft VBScript runtime (0x800A0006)
                          > Overflow: '[number: 33362]'
                          >[/color]


                          Comment

                          Working...