Board index » Web Programming » System.StackOverflowException: Exception of type System.StackOverf

System.StackOverflowException: Exception of type System.StackOverf

Web Programming191
Error:-

System.StackOverflowException: Exception of type

System.StackOverflowException was thrown.

When is this thrown..

Any ideas


-
 

Re:System.StackOverflowException: Exception of type System.StackOverf

this should happen when you have a cicling method which is never finishig.

It should happen to have a property like this



private int a ;

public int A{

get{ return A;} instead of A put a

set{ A = value;} instead of A put a

}



this is the most usuall content in which you get the error.



"Patrick.O.Ige" wrote:



Quote
Error:-

System.StackOverflowException: Exception of type

System.StackOverflowException was thrown.

When is this thrown..

Any ideas

-

Re:System.StackOverflowException: Exception of type System.StackOverf

Thx mate.

I get it when i work with VS.NET!

But works with asp.net

Do u know why?:)







"Psycho" wrote:



Quote
this should happen when you have a cicling method which is never finishig.

It should happen to have a property like this

when i work with VS.NET

private int a ;

public int A{

get{ return A;} instead of A put a

set{ A = value;} instead of A put a

}



this is the most usuall content in which you get the error.



"Patrick.O.Ige" wrote:



>Error:-

>System.StackOverflowException: Exception of type

>System.StackOverflowException was thrown.

>When is this thrown..

>Any ideas

-

Re:System.StackOverflowException: Exception of type System.StackOverf

it is throw when you make an infinite recurvise method.



http://msdn.microsoft.com/library/default.asp?url" rel="nofollow" target="_blank">msdn.microsoft.com/library/default.asp=/library/en-us/cpref/html/frlrfsystemstackoverflowexceptionclasstopic.asp



"Patrick.O.Ige" wrote:



Quote
Thx mate.

I get it when i work with VS.NET!

But works with asp.net

Do u know why?:)







"Psycho" wrote:



>this should happen when you have a cicling method which is never finishig.

>It should happen to have a property like this

>when i work with VS.NET

>private int a ;

>public int A{

>get{ return A;} instead of A put a

>set{ A = value;} instead of A put a

>}

>

>this is the most usuall content in which you get the error.

>

>"Patrick.O.Ige" wrote:

>

>>Error:-

>>System.StackOverflowException: Exception of type

>>System.StackOverflowException was thrown.

>>When is this thrown..

>>Any ideas

-