Results 1 to 2 of 2

Thread: Exception of type System.StackOverflowException was thrown

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Exception of type System.StackOverflowException was thrown

    hi i am using asp.net, vb.net.. i have a 3ntier webform.
    When i am running my webform i get this error message

    VB Code:
    1. Exception of type System.StackOverflowException was thrown

    can some please explain this to me.. thanks in advance

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    Re: Exception of type System.StackOverflowException was thrown

    System.StackOverflowException Class
    public sealed class StackOverflowException : SystemException


    Base Types
    Object
    Exception
    SystemException
    StackOverflowException

    Assembly
    mscorlib
    Library
    BCL
    Summary
    Represents the error that occurs when the execution stack overflows due to too many method calls.

    Description
    [Note: StackOverflowException is thrown for execution stack overflow errors, typically in the case of a very deep or unbounded recursion.
    The localloc IL instruction throws StackOverflowException.

    ]


    Example
    The following example demonstrates an error that causes a StackOverflowException exception.

    using System;
    public class StackOverflowExample {
    public static void recursion() { recursion(); }
    public static void Main() {
    try {
    recursion();
    }
    catch(StackOverflowException e) {
    Console.WriteLine("Error caught: {0}", e);
    }
    }
    }

    The output is
    Error caught: System.StackOverflowException: Exception of type System.StackOverflowException was thrown.


    See Also
    System Namespace
    Members
    StackOverflowException Constructors

    StackOverflowException() Constructor
    StackOverflowException(System.String) Constructor
    StackOverflowException(System.String, System.Exception) Constructor
    Post your code if you need help tracking it down.
    ~Ryan





    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width