stackoverflow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sjoerd van den Nieuwenhof

    stackoverflow

    hello,

    i'm getting a error named: an unhandled exception of
    type 'system.stackov erflowException ' occured in unknow
    module.

    whta does this mean??
    please help me
  • Armin Zingler

    #2
    Re: stackoverflow

    "sjoerd van den Nieuwenhof" <sjoerd83@hotma il.com> schrieb[color=blue]
    > hello,
    >
    > i'm getting a error named: an unhandled exception of
    > type 'system.stackov erflowException ' occured in unknow
    > module.
    >
    > whta does this mean??
    > please help me[/color]

    When a procedure is called, the return address is put on the stack. Also all
    local variables are on the stack. The size of the stack is limited. A stack
    overflow means that a procedure is about to be called but there is no space
    on the stack. Usually this is due to a bug (e.g. recursive procedure calls).
    Open the callstack window and have a look what causes the exception.


    --
    Armin

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: stackoverflow

      Hello,

      "sjoerd van den Nieuwenhof" <sjoerd83@hotma il.com> schrieb:[color=blue]
      > i'm getting a error named: an unhandled exception of
      > type 'system.stackov erflowException ' occured in unknow
      > module.[/color]

      When/where do you get this error?

      Regards,
      Herfried K. Wagner
      --
      MVP ยท VB Classic, VB .NET
      Die Website von H. Wagner zu .NET, Visual Basic .NET und Classic Visual Basic.



      Comment

      • Klaasjan Mors

        #4
        Re: stackoverflow

        Hi Sjoerd,

        I have had the same error. My problem was that something was looping.
        module 1 calls module 2 and module 2 calls module 1.

        Maybe is that your problem too.

        succes.
        Klaasjan

        "sjoerd van den Nieuwenhof" <sjoerd83@hotma il.com> wrote in message news:<088e01c36 892$6f718390$a6 01280a@phx.gbl> ...[color=blue]
        > hello,
        >
        > i'm getting a error named: an unhandled exception of
        > type 'system.stackov erflowException ' occured in unknow
        > module.
        >
        > whta does this mean??
        > please help me[/color]

        Comment

        • Cor

          #5
          Re: stackoverflow

          Hi
          The fastest way to get a stack overflow is calling the callerroutine itself
          withouth controling the end
          \\\\
          private sub looper()
          dim a as integer = 2
          do until a = 1
          looper()
          loop
          end sub
          ////
          Cor


          Comment

          • Kevin A.

            #6
            Re: stackoverflow

            > private sub looper()[color=blue]
            > dim a as integer = 2
            > do until a = 1
            > looper()
            > loop
            > end sub[/color]

            Why not:

            Private Sub Looper
            Looper()
            End Sub

            ?


            Kevin


            "Cor" <non@non.com> schreef in bericht
            news:3f473f5e$0 $1622$48b97d01@ reader20.wxs.nl ...[color=blue]
            > Hi
            > The fastest way to get a stack overflow is calling the callerroutine[/color]
            itself[color=blue]
            > withouth controling the end
            > \\\\
            > private sub looper()
            > dim a as integer = 2
            > do until a = 1
            > looper()
            > loop
            > end sub
            > ////
            > Cor
            >
            >[/color]


            Comment

            • Cor

              #7
              Re: stackoverflow

              You are right


              Comment

              Working...