Click here to Skip to main content
15,911,478 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
i had face a problem in asp.net with an exception...

System.StackOverflowException' occurred in sample.DLL
Posted
Comments
OriginalGriff 13-May-11 5:22am    
Let me just engage the Telepathy function....
....Nope, it's not working. I just can't see your code from here.

Use the "Improve question" widget to add a relevant code fragment to your question - at least give us a clue!
Sergey Alexandrovich Kryukov 13-May-11 5:38am    
Big deal! This is the Recursive Telepathic Method.
I answered, please see... :-)
--SA

It's not nice of your to ask such questions without showing any code (Griff's right about telepathic abilities; I don't have them, but Griff does; he is just kidding :-)).
Almost 100% of such cases is when you use recursion or mutual recursion (of more than one methods calling each other in cycle). In such cases, your bug is not providing a condition when this recursion ever finishes.


  1. Read about the subj.: http://en.wikipedia.org/wiki/Recursion[^], http://en.wikipedia.org/wiki/Mutual_recursion[^].
  2. Analyze your code.
  3. Use debugger and detect situation when you get to the same point of code again and again. Usually it's quite easy to find.
  4. Fix the bug.
  5. PROFIT!


—SA
 
Share this answer
 
v4
Comments
OriginalGriff 13-May-11 5:59am    
I was going to give you 5 for that, but you are wrong about me and telepathy, so...
What the heck - 5 anyway! :laugh:
Sergey Alexandrovich Kryukov 13-May-11 6:11am    
Thank you for the vote; and as to your telepathy... OK, if you don't want to confess -- don't, but I know :-)
--SA
OriginalGriff 13-May-11 6:14am    
Bugger! That's two of you who know my secret: I am from the Planet Zarg and I'm here to enslave you all! Mwhaaaaaa!
Sergey Alexandrovich Kryukov 13-May-11 6:42am    
I'll wear an aluminum foil hat (TM) :-)
--SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900